Post

Replies

Boosts

Views

Activity

Comment on Sheet Display Error When Picker Open
Thanks for experimenting here. I tend to think this is an Apple bug as you really don't directly control a Picker's presentation or dismissal, so it is hard to coordinate its lifecycle with other presentations like Sheets. But I think your trick of conditionally including the Picker in the view tree is a clever work-around to avoid this bug.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
Comment on SwiftUI Previews for Watch Fail When Scheme Includes iOS App
See the screenshot of the error below. Is this what you mean by selecting the watch simulator as a run destination? The only way I can get previews to build is by removing the iOS target from the watch scheme in the description.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Update Watch Complication with CloudKit
I am updating it on the main thread but thanks for the suggestion.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’23
Comment on Sheet Display Error When Picker Open
Thanks for experimenting here. I tend to think this is an Apple bug as you really don't directly control a Picker's presentation or dismissal, so it is hard to coordinate its lifecycle with other presentations like Sheets. But I think your trick of conditionally including the Picker in the view tree is a clever work-around to avoid this bug.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23