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
var parentViewController: UIViewController? { let s = sequence(first: self) { $0.next } return s.compactMap { $0 as? UIViewController }.first }