UIStoryboard

public extension UIStoryboard
  • SwifterSwift: Get main storyboard for application

    Declaration

    Swift

    static var main: UIStoryboard? { get }
  • SwifterSwift: Instantiate a UIViewController using its class name

    Declaration

    Swift

    func instantiateViewController<T>(withClass name: T.Type) -> T? where T : UIViewController

    Parameters

    name

    UIViewController type

    Return Value

    The view controller corresponding to specified class name