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.
Post
Replies
Boosts
Views
Activity
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!