Do you also have those same exclamation points
I can get those exclamation marks to show up in the Connections Inspector–if I open the file ViewController.swift and change the class name to:
class MyViewController: UIViewController {
After doing that, if I go to the storyboard and select View Controller in the storyboard’s table of contents, and then I open the Identity Inspector, and I look at the top section in the Identity Inspector, which is titled Custom Class, next to Class is the name ViewController–which does not match the new name of my class:
class MyViewController: UIViewController {
I also experience the exact same dragging problems in the storyboard that you do. Did you somehow misspell “class ViewController” in ViewController.swift or in the Identity Inspector?
I also notice that when I change my class name in ViewController.swift to:
class MyViewController: UIViewController {
the circles next to my declared outlets instantly change from filled in to blank, and when I change the class name back to:
class ViewController: UIViewController {
all the circles get filled in again–and the exclamation marks disappear in the Connections Inspector.
My tests show that as long as the class name in ViewController.swift matches the class name listed in the Identity Inspector in the storyboard, then the app runs fine. In other words, the class name in ViewController.swift does not have to match the file name.
Also, when you change the class name in the Identity Inspector be sure to Tab out of that field or else the class name won’t take effect.