Releases: KinesteX/KinesteX-SDK-Swift
Releases · KinesteX/KinesteX-SDK-Swift
KinesteX SDK v1.0.4
NEW: AI Experiences & Content API
- Added createExperienceView to create AI Experiences:
KinesteXAIFramework.createWorkoutView(
apiKey: apiKey,
companyName: company,
userId: "YOUR USER ID",
experience: "Box",
user: nil,
isLoading: $isLoading,
onMessageReceived: { message in
switch message {
case .exit_kinestex(_):
showKinesteX = false
default:
break
}
}
)
- Added function to fetch workout, plan, or exercise details from our API. All data is stored conveniently in models:
Task {
await KinesteXAIFramework.fetchAPIContentData(apiKey: apiKey, companyName: company,
contentType: selectedContentType, id: id { result in
switch result {
case .workout(let workout):
fetchedWorkout = workout
case .plan(let plan):
fetchedPlan = plan
case .exercise(let exercise):
fetchedExercise = exercise
case .error(let errorMessage):
print("Error:", errorMessage)
}
}
}