I can’t believe this is possible. I have a custom MyViewController with a function called buttonTapped(). I have yet to set the View Controller Custom Class to MyViewController.

In Interface Builder I can Control Click a button; drag it to the First Responder icon and select buttonTapped() from MyViewController. But MyViewController isn’t attached to the View Controller. How did Xcode find buttonTapped() during the control drag?

Xcode Version 10.1 (10B61)