6

I am trying to understand Storyboard in XCode. I have created a new Mac OS X Application from template and defined a simple Storyboard, like in the following image:

enter image description here

The problem is that when I run the application, my window looks like this:

enter image description here

I have to resize it to see RIGHT and LEFT part of vertical split view. I have defined height and with of my window so I don't know why is this happening and I really don't know why is this window correctly shown with view controller below instead of split view controller.

enter image description here

enter image description here

What I am doing wrong with split view controller?

MartinW
  • 4,966
  • 2
  • 24
  • 60
user1563721
  • 1,373
  • 3
  • 28
  • 46
  • This is not related to Swift. I experience the exact same problem in an Objective-C project. I removed the Swift reference in title and tags. – MartinW May 09 '16 at 13:36

1 Answers1

2

A solution is to add width constraints with a minimum width to the views in each side of the SplitView.

I got the idea from this answer to a similar question.

Community
  • 1
  • 1
MartinW
  • 4,966
  • 2
  • 24
  • 60