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.
Build custom workouts with WorkoutKit
RSS for tagDiscuss the WWDC23 Session Build custom workouts with WorkoutKit
Posts under wwdc2023-10016 tag
4 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
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?
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
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