Search code examples
iosswiftxcodesegueuistoryboard

Xcode black bar on top of view controller after connecting segue


I have a problem with my Xcode project. The problem is that when I link one of my view controllers up to another with a segue a weird black bar appears on the top. Here's a video of that problem.

https://i.sstatic.net/SQLLZ.jpg

Does anyone know what might be causing this?


Solution

  • This is because the segue to the second ViewController is a "show", and the second VC will show like this:

    enter image description here

    If you want this VC to be full screen, click on the segue you created, change the "Kind" property to "Present Modally", and the "Presenttion" property to "Full Screen":

    enter image description here