Skip to content

Releases: KinesteX/KinesteX-SDK-Swift

KinesteX SDK v1.0.4

10 Nov 11:54
Compare
Choose a tag to compare

ContentAPI:

  • Added filtering by body parts for workouts, exercise and plans.
  • Added filtering by category for workouts and plans.

NEW: AI Experiences & Content API

03 Nov 22:53
Compare
Choose a tag to compare
  • 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)
                            }
                        }
                    
                    }