StanfordSpezi / SpeziOnboarding

Spezi Onboarding module to inform a user or retrieve consent for a study participation
https://swiftpackageindex.com/StanfordSpezi/SpeziOnboarding/documentation/
MIT License
11 stars 5 forks source link

Native visionOS Support #17

Closed PSchmiedmayer closed 4 months ago

PSchmiedmayer commented 10 months ago

Problem

With a few projects using visionOS and testing on the Apple Vision Pro, we want to move all Spezi modules in the Stanford Spezi organization to adopt the native UI components of visionOS.

Solution

Update all UI components to use native SwiftUI components on visionOS. We also need visionOS as a supported platform for the Swift package file, and we may update the Swift tools version to 5.9.

You can learn more about visionOS and SwiftUI for visionOS at https://developer.apple.com/visionos/learn/.

All UI changes should be as cross-platform as possible. Increasing the iOS minimum platform target is acceptable.

Feel free to use comments under this issue to discuss the best way to approach the adoption of visionOS for the Spezi module.

Additional context

It is required to install the latest Xcode 15 beta to address this issue.

Unfortunately, UI tests are currently not supported for visionOS. The StanfordBDHG/SwiftPackageTemplate demonstrates the CI setup for visionOS that should also be adopted for this Spezi module.

This change will be considered a breaking change.

Code of Conduct

Supereg commented 4 months ago

This should be addressed as of #37