Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change background color of modal presentation ios13?

Tags:

ios

swift

ios13

In iOS 13 we have new modal presentation behavior like this:

enter image description here

How to change background .black color?

like image 389
えるまる Avatar asked Sep 26 '19 14:09

えるまる


Video Answer


1 Answers

That color is the background color of your window. So, assuming that you have a reference to it, the example below:

window?.backgroundColor = UIColor.red

would produce:

enter image description here

like image 162
Alladinian Avatar answered Sep 20 '22 06:09

Alladinian