Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HealthKitSetupAssistant {
- class func authorizeHealthKit(completion: @escaping (Bool, Error?) -> Swift.Void) {
- // authorizing code
- // HKHealthStore().requestAuthorization(){}
- }
- }
- HealthKitSetupAssistant.authorizeHealthKit { // completion handling }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement