Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController to its UIView
UIView
UIViewController
To get the controller of a given view, one can use UIFirstResponder chain.
customView.target(forAction: Selector("viewDidLoad"), withSender: nil)