Post

Replies

Boosts

Views

Activity

Reply to Preview of SwitftUI View used in multiple targets
Solution to preview a SwiftUI View for watchOS (Standalone) and iOS: Create a new scheme In the Build Section only add the watchOS Target Run the preview I did not found a solution to display the view for the two targets at the same time (side by side) but at least I can preview it for every target by switching the scheme Using compiler flags you can even customize the previews. For example testing darkMode on iOS or using a different device. Group { MyView(model: viewModel) {} #if os(iOS) MyView(model: viewModel{}. preferredColorScheme(.dark) #endif }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Watch app doesn't receive location updates on watchOS 10 beta
Can confirm that. I‘ve tested different apps from the AppStore, always same behaviour.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Watch app doesn't receive location updates on watchOS 10 beta
I've tried a WatchOS Companion App and a WatchOS Standalone app (runs without iPhone checked) with XCode 15 RC. After deinstallation and reinstallation of the watch-App the error occurs in both scenarios. No chance to fix it. Users of my App already reporting that it happens in production with the App downloaded from the Appstore.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Watch app doesn't receive location updates on watchOS 10 beta
This is also related to the same Issue: FB13119312 (LocationButton does not work)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Preview of SwitftUI View used in multiple targets
Solution to preview a SwiftUI View for watchOS (Standalone) and iOS: Create a new scheme In the Build Section only add the watchOS Target Run the preview I did not found a solution to display the view for the two targets at the same time (side by side) but at least I can preview it for every target by switching the scheme Using compiler flags you can even customize the previews. For example testing darkMode on iOS or using a different device. Group { MyView(model: viewModel) {} #if os(iOS) MyView(model: viewModel{}. preferredColorScheme(.dark) #endif }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21