I am excited to start using some of the new features in SwiftUI on an app I'm building but I am a bit confused about the launch. Do the new features only work on the Xcode 14 beta? If that is the case I will hold off because I don't want to risk any bugs. When would the full rollout be for everyone to use? Any explanation on timing or how that works would be super helpful. Thanks!
Is Xcode 14 required to use new SwiftUI features like Charts?
Hi,
New SwiftUI features like Swift Charts come with the new SDKs that only ship in Xcode 14.
Beta versions give the developers some time to discover and experiment with some of the new features that will be available once the new operating systems are released to the customers later during the year.
I'd recommend you to have a separate fork/branch to test new features like Swift Charts and back port your changes to your main branch once the feature is not in beta anymore.
You could also use availability checks
to make sure that the targeted device supports a specific feature: https://developer.apple.com/tutorials/app-dev-training/adopting-new-api-features/
Please visit the developer website for more information: https://developer.apple.com/documentation/charts and check the WWDC Tutorial for Swift Charts: https://developer.apple.com/videos/play/wwdc2022/10136/
Thanks!