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
Another way just create your button name manually in view controller like this -
@IBOutlet weak var button: UIButton!
then connect your button via drag to view controller as image shown [!
PS:- please clean your derived data also.