Post

Replies

Boosts

Views

Activity

Comment on Retaining selected picker when view is loaded
Even when I hardcode the 'weight' picker to be the default focus with .defaultFocus($controlSelection, .weight), it is the focused picker on the first load. However, any small drag gesture on the page resets the focus to the 'exercise' picker. See simplified example here. Is there a way to detect when a TabView page drag has completed, even if the current page hasn't changed? I tried dragGesture, but this didn't work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Comment on Retaining selected picker when view is loaded
.onAppear works when the TabView page has been changed to a new page completely, and then changed back. However, any small accidental drag on the page causes the 'exercise' picker to be the focused picker.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Retaining selected picker when view is loaded
Even when I hardcode the 'weight' picker to be the default focus with .defaultFocus($controlSelection, .weight), it is the focused picker on the first load. However, any small drag gesture on the page resets the focus to the 'exercise' picker. See simplified example here. Is there a way to detect when a TabView page drag has completed, even if the current page hasn't changed? I tried dragGesture, but this didn't work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on WidgetKit Watch Complication not displaying Images
Yes, I did try scaling down assets between 42x42 to 50x50 depending on the Watch and complication size. However, they were always blurry, and I couldn't find a fix. I've resorted to creating the icon for the complication out of SF Images, which looks a lot sharper.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Can't Load Image on Apple Watch Complications with New iOS 16 Widget
I've got the exact same issue. Cannot get a custom image to show, system images display fine though. Did you find a solution to this?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on .onAppear() and .onDisappear() not running in child views (WatchOS 8 beta 4)
Whoops, didn't mean to mark this comment as accepted. This problem for me was resolved in a future beta.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22