Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Benefit of using .fullScreen presentation style in compare to .overFullScreen presentation style in ios

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.

like image 863
user3247895 Avatar asked Nov 01 '19 10:11

user3247895


Video Answer


1 Answers

.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.

like image 194
Suraj Lokhande Avatar answered Oct 04 '22 17:10

Suraj Lokhande