Skip to main content

Posts

Featured

HEALTH_KIT

Workout App explaining Activities

- Swimming
- Walking/Runnig
- FLightsClimed
- Steps
import UIKit import HealthKit class HealthKitManager: NSObject { class var sharedInstance: HealthKitManager{ struct Singleton { static let instance = HealthKitManager() } return Singleton.instance } let healthStore: HKHealthStore? = { if HKHealthStore.isHealthDataAvailable(){ return HKHealthStore() }else{ return nil } }() let stepsCount = HKQuantityType.quantityType(forIdentifier: HKQuantityTypeIdentifier.stepCount) let stepsUnit = HKUnit.count() let distanceWalkingRunning = HKQuantityType.quantityType(forIdentifier: HKQuantityTypeIdentifier.distanceWalkingRunning) let distanceSwimming = HKQuantityType.quantityType(forIdentifier: HKQuantityTypeIdentifier.distanceSwimming) let distanceUnit = HKUnit.mile() let flightsClimbed = HKQuantityTy…

Latest posts

REACT-NATIVE

Migrating of AKFTheme AccountKit Facabook iOS

Share Video to Facebook

Upload Video To Twitter Using SLRequest