This is a small project for generating sample data within HealthKit on an iOS Simulator.
- Run
pod install
and open the created workspace - Inside
ViewController.swift
, setsampleData.sampleTypes
to the Set of sample types that you would like to generate random data for. The project includes anHKOBjectTypes
file which contains a Set of all sharable HealthKit sample types. - Inside
ViewController.swift
, setsampleData.writeDataSince
to the length of time would like to generate data for. - Run the project, allow the app permission for all sample types and the app will begin populating HealthKit
To clear all HealthKit data, erase and restart the simulator.
Please note that this generator uses random numbers from 1 - 100. The data WILL look weird in HealthKit. We're hoping to implmement sensible ranges for each quantity type in the future.