Created
July 31, 2017 11:13
-
-
Save anirudhamahale/e7481cb95d01553d1dc0d5d38da30455 to your computer and use it in GitHub Desktop.
List of the permission that we might want to run in swift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private func isNotificationGranted() -> Bool { | |
| if UIApplication.shared.currentUserNotificationSettings!.types == [] { | |
| return false | |
| } else { | |
| return true | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment