UIScene.ConnectionOptions.shouldHandleActiveWorkoutRecovery Missing?

According to the WWDC25 Presentation Track workouts with HealthKit on iOS and iPadOS, there is supposed to be a new property for restoring an active workout after a crash on iOS/iPadOS. The developer documentation also supports this. However, this property does not seem to exist in the latest Xcode 26 beta, even in projects targeting iOS 26.0 as the minimum version.

Am I missing something? Has this property not been made available yet? It is actually looking like all of the new iOS 26.0 properties are missing UIScene.ConnectionOptions on my system.

Answered by JacobJohnston in 854781022

I actually figured it out - it appears that it isn't just included in UIKit, but is instead part of an extension in HealthKitUI. Fixed by adding

import HealthKitUI

This most likely a bug. Did you have a feedback report yet? If not, I’d suggest that you file one with your code snippet and steps to reproduce the issue, and share your report ID here. Thanks!

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Accepted Answer

I actually figured it out - it appears that it isn't just included in UIKit, but is instead part of an extension in HealthKitUI. Fixed by adding

import HealthKitUI

Oh, if you can't compile your code because Xcode can't find the symbol, import HealthKitUI will fix that. But does options.shouldHandleActiveWorkoutRecovery return true to you when you launch your app that crashed with an active workout ongoing?

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

UIScene.ConnectionOptions.shouldHandleActiveWorkoutRecovery Missing?
 
 
Q