[Technical Questions] Import values from healthkit and show them in the view #121
-
In what area do you have a technical challenge?Xcode, Simulator & Previews DescriptionI am trying to import steps and activeEnergyBurned to my app, show it in the view, and then log it into firebase. Reproduction
Expected behaviorImport healthkit data to the view and create an activity Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@elsa-bismuth Thank you for reaching out! Here are the documentation links for the SpeziHealthKit 1.0.0-beta.1 and SpeziHealthKitUI 1.0.0-beta.1. They are currently a beta release (1.0.0-beta.1) so you have to explicitly select the beta tag in the documentation picker on SPI. You will also have to update your imported version of SpeziHelathKit to The documentation of SpeziHealthKitUI links to the relevant elements such as If you want to visualize HealthKit data, I would not recommend going through the FireStore. You can use HealthKit as a good local database for all your Health-related data if there is a suitable quantifier and also write to HealthKit (you can specify that your app needs to permissions using the RequestWriteAccess configuration) following the Apple documentation: Saving data to HealthKit. If you have data in Firestore that you want to visualize in a Chart, I would recommend checking out Swift Charts. |
Beta Was this translation helpful? Give feedback.
@elsa-bismuth Thank you for reaching out!
Here are the documentation links for the SpeziHealthKit 1.0.0-beta.1 and SpeziHealthKitUI 1.0.0-beta.1. They are currently a beta release (1.0.0-beta.1) so you have to explicitly select the beta tag in the documentation picker on SPI.
You will also have to update your imported version of SpeziHelathKit to
1.0.0-beta.1
in your Xcode project settings (Select your project in the Project Editor and navigate to the Packages Dependencies pane).The documentation of SpeziHealthKitUI links to the relevant elements such as
HealthKitQuery
and theHealthChart
. Let us know if you encounter any issues or have feedback regarding the API as we are continuously i…