I am able to right-click and drag from my custom UIView subclass file to the storyboard elements to connect them, but unable to do so the other way around. I believe this is
Things to check if IBOutlet does not connect:
Is the class defined in storyboard?
Select the UIViewController in storyboard, then on the right side of the screen, select the identity inspector and assign the appropriate class.
Are the type of outlet you defined match the one on storyboard?
For example, we connect UIButton, then the outlet should look like that, write the code for the outlet, then connect to the view controller:
@IBOutlet weak var theButton: UIButton!