Build custom workouts with WorkoutKit

RSS for tag

Discuss the WWDC23 Session Build custom workouts with WorkoutKit

View Session

Posts under wwdc2023-10016 tag

5 Posts
Sort by:
Post not yet marked as solved
4 Replies
702 Views
I am unable to see the workout composition from preview in the new WorkoutKit framework. This is reproducible on an iPhone running iOS 17.0 running xcode 15.0 beta 2. I downloaded the Sample Planner app that showcases the new WorkoutKit framework capabilities , introduced in the session 10016 of wwdc 23. I can create workout compositions but the preview presentation doesn’t work as expected. It shows a black screen without any info. I attached a screenshot. You can reproduce it on the sample app when showing the PresentPreviewDemo view.
Posted Last updated
.
Post not yet marked as solved
1 Replies
378 Views
Dear All, Is there a way to remove a workout? In the tutorial app, it is shown how to schedule workouts. But so far, I haven't seen a way to remove them again, neither from the tutorial app nor from the workouts app on the watch. Many thanks and best regards, Patrick
Posted
by PatDelft.
Last updated
.
Post not yet marked as solved
0 Replies
378 Views
Hi there, Thanks for the great tutorial for WorkoutKit, that can be found here: https://developer.apple.com/videos/play/wwdc2023/10016/ In my view Text(scheduledWorkout.plan.workout.activity.displayName) in SamplePlannerView.swift (the main view) does not show the correct string. For example for the running workout, it should show: "New Running Workout". This string is set in WorkoutStore.swift. However, it shows "Outdoor Running", which is the type of workout but not the display name that was given to it. Best regards, Patrick
Posted
by PatDelft.
Last updated
.
Post not yet marked as solved
0 Replies
314 Views
It seems like swimming crashes the app with unsupported exception, is this expected? are you planning to support swimming in one of the next Betas?
Posted Last updated
.
Post not yet marked as solved
1 Replies
412 Views
I tried the sample code from 'Customizing workouts with WorkoutKit' all works fine on the simulator, however, I have the following error when testing on device (iPhone SE): Error Domain=WorkoutKit.StateError Code=0 "(null)" On launch, this is associated with 'failed to retrieve scheduled plans'. Also the same when requesting authorization. Any ideas on this one?
Posted Last updated
.