setApplicationIconBadgeNumber swift code example Example: swift clear badge number UIApplication.shared.applicationIconBadgeNumber = 0