I have multiple widgets in my application, and they all appear as the "placeholder" view.
In my snapshot code (shown below), the information is returned in less than a second. I even tried using sample data rather than retrieving the data from HealthKit (the commented out code).
In fact, you can briefly see the data show up in Widget Gallery in a video I took, before it switches to the placeholder view. (For some reason the forums aren't allowing me to link to the video)
Any idea what's going on?
In my snapshot code (shown below), the information is returned in less than a second. I even tried using sample data rather than retrieving the data from HealthKit (the commented out code).
In fact, you can briefly see the data show up in Widget Gallery in a video I took, before it switches to the placeholder view. (For some reason the forums aren't allowing me to link to the video)
Any idea what's going on?
Code Block swift public func snapshot(for configuration: HealthStatTypeSelectionIntent, in context: Context, completion: @escaping (HealthEntry) -> ()) { print("HealthWidget.snapshot ") let entry = HealthEntry(date: Date(), stat: HealthStat(type: .steps) ) completion(entry) // HealthKitHelper.shared.getStats(for: .steps) { stat in // let entry = HealthEntry(date: Date(), stat: stat ) // completion(entry) // // } }