How can I call presentViewController in UIView class?
问题 There is a custom tab in in my project that is on every screen of the app, so i made custom UIView class and xib file and added buttons in them. Now i want my buttons for navigations on different screens having different story board ids. But i can't call presentViewController from UIView class. Previously i custom function in extension class to navigate between screens but UIView class also can't call that function. import UIKit @IBDesignable class tab: UIView { var view: UIView! @IBAction