-1

I am new to swift development and I was wondering what is this area at the top of my view controller and how do I change it so it matches the rest of the view?

View Controller Screenshot-

Image

iDeveloper
  • 2,339
  • 2
  • 24
  • 38
  • 2
    Try giving colour to the main view of the view controller i.e. the view which is present above safe area. – WhiteSpidy. Sep 07 '20 at 05:18
  • 3
    Possible duplicate of: [Presenting modal in iOS 13 fullscreen](https://stackoverflow.com/questions/56435510/presenting-modal-in-ios-13-fullscreen) – TylerP Sep 07 '20 at 05:26

1 Answers1

0

As @Tyler said, the area comes from the default presenting modal since iOS13.

But if you are asking how to get rid of it in storyboard (my guess from your image), try set the Size attribute in the attribute inspector to "Inferred".

You probably had set it to Page sheet, which show the appearance of a page when presented modally.

enter image description here enter image description here

paky
  • 595
  • 1
  • 5
  • 18