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
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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
}
}
}