ARNotification
iOS 上用 Swift 编写的轻量级通知
要求
iOS 9.0+
示例
例如,在 didFinishLaunchingWithOptions 中设置通知窗口
import ARNotification
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
ARNotification.shared.window = self.window
var settings = ARNotificationSettings()
settings.position = ARNotificationPosition.bottom
ARNotification.shared.settings = settings
return true
}
下一页
ARNotification.shared.push(type: .error, title: "Unknown error")