This file contains 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
class TestClassSync { | |
func calc() -> Int { | |
return 100 | |
} | |
func run() -> Int { | |
return 100 + calc() | |
} | |
} |
This file contains 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
/** | |
Quick and dirty CSV importer, only used once by me to import my own data, sharing it here | |
in case anyone finds it useful. | |
*/ | |
class HealthKitCSVImporter { | |
let healthStore = HKHealthStore() | |
let bodyMassType = HKSampleType.quantityType(forIdentifier: .bodyMass)! | |
func authorizeHealthKit(completion: @escaping ((_ success: Bool, _ error: Error?) -> Void)) { |