Ctrl-drag in xcode doesn't work despite same class name

305 views Asked by At

I have been adding labels to my storyboard in my 'BowlerController' scene and pairing them up with the code in BowlerController.swift file.

However, after adding 5 labels, I tried adding another label(after adding some other functionalities in other interface controllers). I noticed that the control-drag has stopped working.I can drag the line to the code but the insert action line doesn't show up so I cant pair the code with the label.

All other solutions to this issue point towards a mismatch in the interface class name and the class name in the .swift file. I haven't changed anything so that should not be the issue. I am also attaching a screenshot for reference

The new label I am trying to add is right at the bottom and is named 'label' in the storyboard.

Can anyone help me figure out why I can't ctrl-drag any more

enter image description here

0

There are 0 answers