Skip to content

Instantly share code, notes, and snippets.

@MaatheusGois
Last active July 11, 2019 22:30
Show Gist options
  • Select an option

  • Save MaatheusGois/fce2f773dc6750e8fa73a0953c4f4b9c to your computer and use it in GitHub Desktop.

Select an option

Save MaatheusGois/fce2f773dc6750e8fa73a0953c4f4b9c to your computer and use it in GitHub Desktop.
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions
launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
//=====================ADD ESSAS LINHAS====================
let badge = UIApplication.shared.applicationIconBadgeNumber
if badge > 0 {
UIApplication.shared.applicationIconBadgeNumber = 0
}
//========================================================
return true
}
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment