The second ViewController has this space on top and it almost shows up as a dismissable-popup on the phone. How to make is full screen (remove the space pointed with the Orange arrow)?
This is an iOS 13 change. Users will start to expect to be able to swipe away modals so it might be worth looking into supporting that.
If you're really set on using the old presentation style you can do so by setting the modalPresentationStyle of the presented viewController either before presenting:
vc.modalPresentationStyle = .fullScreen
or override it in the view controller itself:
override var modalPresentationStyle: UIModalPresentationStyle {
get { .fullScreen }
set { assertionFailure("Shouldnt change that 😠") }
}
or set in in the storyboard segue:
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