Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let healthKitManager = HealthKitManager()
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
- // Override point for customization after application launch.
- healthKitManager.requestAccessWithCompletion() { success, error in
- if success{ print("HealthKit access granted") }
- else { print("Error requesting access to HealthKit: \(error!)") }
- }
- }
Add Comment
Please, Sign In to add comment