Guest User

Untitled

a guest
Sep 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. let healthKitManager = HealthKitManager()
  2.  
  3. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  4. // Override point for customization after application launch.
  5.  
  6. healthKitManager.requestAccessWithCompletion() { success, error in
  7. if success{ print("HealthKit access granted") }
  8. else { print("Error requesting access to HealthKit: \(error!)") }
  9. }
  10. }
Add Comment
Please, Sign In to add comment