- iOS: iOS 14.0 or higher
Add the following keys for camera usage:
<key>NSCameraUsageDescription</key>
<string>Please grant access to camera to start AI Workout</string>
If you do not have Info.plist: Open project in Xcode > click project name > select target > Info tab > Custom Application Target Properties > add "Privacy - Camera Usage Description" key with message requesting camera permission.
Add the framework as a package dependency with the following URL:
https://github.com/KinesteX/KinesteX-SDK-Swift.git
Initialize Variables
@State var showKinesteX = false // Controls KinesteX SDK visibility
@State var isLoading = false // Optional: Controls custom loading screen
let apiKey = apikey // Your KinesteX API key
let company = "yourcompanyname" // Your company identifier
let userId = userId // Unique identifier for user tracking and progress. Must be unique per user, can be any string value
// Optional: UserDetails to customize workout intensity
let user = UserDetails(age: 20, height: 170, weight: 70, gender: .Male, lifestyle: .Active)