Post

Replies

Boosts

Views

Activity

Accessing the APi
This is from the code in the video on Exploring Verifiable Health records. @ the 10:28 mark I get an error saying cannot find predicaetForVerifiableClincalRecords in Scope. import HealthKit import Foundation let healthStore = HKHealthStore() let recordTypes = ["https://smarthealth.cards#immunization"] let endDate = Date() let startDate = Calendar.current.date(byAdding: .day, value: -7, to: endDate) let dateInterval = DateInterval(start: startDate ?? .now, end: endDate) let predicate = predicateForVerifiableClinicalRecords(withRelevantDateWithin: dateInterval) <- error here
1
0
545
Mar ’23
What would be the proper Syntax
I'm relatively new to this and I am having and small issue in where to place the return in my scopes and basically figuring out the proper syntax for this. func isPassingGrade(for scores: [Int]) -> Bool {     var total = 0     for score in scores { total += score     if total >= 500 {         return true         }else {         return false }     } }
3
0
422
May ’22