Post

Replies

Boosts

Views

Activity

Comment on iOS 14 .onAppear() is called on DISappear instead of appear
This works correctly!!! Thank you. Please note that in my environment, VStack{ ... } .onAppear(){ print("Fired directly after onDisappear") } .onAppear(){ print("Works as usual - only fired on appear, even when navigation back to this view as expected") } .onDisappear(){ print("Fired on Disappear as expected") } works!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on SwiftUI: Force orientation on a per screen basis
This code also works well for iPad. You may miss the configuration in Xcode. In Xcode -> general -> development info, you have to check only "iPad", choose "portrait" and "landscape left(right)", and check "requires full screen". Then, you can do well, I think.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21