InstantiatableFromStoryboard

public protocol InstantiatableFromStoryboard : AnyObject

Helps to instantiate object from storyboard file.

  • Undocumented

    Declaration

    Swift

    static var storyboardName: String { get }
  • Undocumented

    Declaration

    Swift

    static var storyboardID: String { get }
  • Undocumented

    Declaration

    Swift

    static func instantiateFromStoryboard() -> Self

Available where Self: UIViewController

  • storyboardName Default implementation

    Default Implementation

    Name of storyboard that contains this view controller. If not specified uses view controller’s class name without “ViewController” or “VC” postfix.

    Declaration

    Swift

    static var storyboardName: String { get }
  • storyboardID Default implementation

    Default Implementation

    View controller storyboard ID. By default uses view controller’s class name.

    Declaration

    Swift

    static var storyboardID: String { get }
  • instantiateFromStoryboard() Default implementation

    Default Implementation

    Instantiates view controller from storyboard file. By default uses view controller’s class name without “ViewController” postfix for storyboardName and view controller’s class name for storyboardID. Implement storyboardName if you want to secify custom storyboard name. Implement storyboardID if you want to specify custom storyboard ID.

    Declaration

    Swift

    static func instantiateFromStoryboard() -> Self