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
-
storyboardName
Default implementationDefault 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 implementationDefault Implementation
View controller storyboard ID. By default uses view controller’s class name.
Declaration
Swift
static var storyboardID: String { get }
-
instantiateFromStoryboard()
Default implementationDefault 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 forstoryboardID
. ImplementstoryboardName
if you want to secify custom storyboard name. ImplementstoryboardID
if you want to specify custom storyboard ID.Declaration
Swift
static func instantiateFromStoryboard() -> Self