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

watchOS Support & AppleWatch User Interface Adjustments #19

Open PSchmiedmayer opened 10 months ago

PSchmiedmayer commented 10 months ago

Problem

The Spezi module should support watchOS to enable developers to build a watchOS-based application.

The current UI elements in the Spezi module only support iOS. As we want to support the Apple Watch, we must ensure that the UI controls are adapted to the smaller screen size and can be navigated on the Apple Watch.

Solution

Update all UI components to use native SwiftUI components on watchOS. We also need to add watchOS 10 as a supported platform in the Swift package file and may update the Swift tools version to 5.9.

The watchOS UI components should support the watchOS 10 UI design paradigms. You can learn more about watchOS 10 in the following WWDC 2023 videos:

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

Additional context

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

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

Code of Conduct