set the screen to show the storyboard on the left and the swift code on the right
A simple way to do it: open storyboard
then option-click on a swift file you want to show.
it will display the file on the right.
You can also click on the icon at the top right which says "add editor" and then select the file to display in.
_________
Note : icon looks like |__|__+__|
You can also use menus to open a new panel: File New Editor
or, if you want to open the new panel below, File New Editor Below
For the error message, you probably have a bad connection between an object in IB and its IBOutlet. You should disconnect and reconnect.
Topic:
Programming Languages
SubTopic:
Swift
Tags: