UIViewController

class UIViewController : UIResponder, NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment
  • Present a view controller using a modal presentation.

    Declaration

    Swift

    public func presentModal(_ viewController: UIViewController, animated: Bool, completion: (() -> Void)?)