Hide home indicator in xib file
Asked Answered
H

2

26

I'm creating a new View and decided to use a xib file so that I can design it in Interface Builder.

I set the Size to Freeform, and resized it in the Size inspector.

However no matter what size I make the view, it still shows the home button indicator (black bar at the bottom):

enter image description here

This gets in the way of my designing the view. How do I get rid of it?

Heptad answered 4/12, 2019 at 19:47 Comment(0)
E
82

Ran into this same issue. There's no need for hacks or changes to the file.

If the size is set to 'Freeform' and the bar is still showing. Just navigate away from the file and reopen it. The bar will no longer appear.

Engedi answered 18/5, 2020 at 15:48 Comment(1)
another Xcode bugBlandish
H
11

Not sure what triggered it, but one hack is to hit the button on the bottom left that shows you what you are viewing as (e.g. View as: iPhone 11 (wC hR) in my case).

In my case I chose the dark interface style temporarily, then switched back to the normal style, and also did the same with different devices (chose a random one, and then back to the iPhone 11), this eventually caused the bar to disappear for good (e.g. even if I close and re-open the xib file).

Heptad answered 4/12, 2019 at 19:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.