I am curious to know that what is/are the actual benefit(s) (with some example) we get if we use .fullScreen
versus .overFullScreen
presentation style while presenting a view controller modally over rootViewController in an iOS app.
I read using .overFullScreen
will unnecessarily show the content below it if presentedViewController
has transparency, but if I use .fullScreen
then also there will be a grey screen visible behind transparency which won't look good. So I am not sure how this is beneficial.
.fullScreen
: the views belonging to the presenting view controller are removed after the presentation completes.
.overFullScreen
: the view beneath the presented are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.
This is the actual difference between them. I hope it will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With