iOS Example App
A native SwiftUI app that mirrors the complete SDK workflow. It connects to the Model Health Companion app via the SDK to manage sessions, calibrate cameras and subjects, record activities and retrieve analysis results.
Source: examples/ios
Requirements
- iOS 17.0+
- Xcode 15.0+
- An API key — request access if you don't have one
Configuration
1. Signing configuration
An Xcode config file is required by the project but not committed to the repository — it contains your signing credentials. A template is provided.
Copy the template and fill in your Apple Developer details:
cd examples/ios
cp LocalConfig.xcconfig.template LocalConfig.xcconfig
Edit LocalConfig.xcconfig and replace the placeholder values:
DEVELOPMENT_TEAM = YOUR_TEAM_ID
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.ModelHealthDemo
Your Team ID can be found in Apple Developer under Membership details.
2. API key
Open ExampleConfig.swift and replace the placeholder:
enum ExampleConfig {
static let apiKey = "your_api_key_here"
}
Launch
Open the project in Xcode and run it on a connected device or simulator:
open examples/ios/ModelHealthDemo.xcodeproj
Select your target device in Xcode's toolbar and press Run (⌘R).