-2

So when I drag it down the app will dismiss the current view an go to there. I don't want it, how should I fix it? Everything was okay till update

enter image description here

Kamran
  • 14,987
  • 4
  • 33
  • 51

2 Answers2

1

In iOS 13, the default modal presentation is sheet, which is what you got.

To get the old modal style, do:

loginVC.modalPresentationStyle = .currentContext
Yonat
  • 4,382
  • 2
  • 28
  • 37
0

In the iOS 13 SDK the color handling changed crucially due to the introduction of Dark Mode.

Set the background color of the current view to System Background color.

And consider that all modally presented view controllers are presented as sheet by default.

vadian
  • 274,689
  • 30
  • 353
  • 361