By updating my xcode to 13.5.1 and my testing phone which is having the same 13.5.1 by cliking the button by moving to the nxt screen it leaves some space at the top where we can see the previous screen how to get rid of it... Thanks in advance
Asked
Active
Viewed 39 times
1 Answers
0
It's an issue with UIViewController.modalPresentationStyle
property, which defaults to .automatic
, which means the presentation style is chosen by system. In iOS 13 the behavior changed so that for most view controllers it displays as pageSheet
. You need to manually change the modalPresentationStyle
of view controller you're showing to fullScreen
yourViewController.modalPresentationStyle = .fullScreen

mag_zbc
- 6,801
- 14
- 40
- 62