NibLoadableView
public protocol NibLoadableView : AnyObject
Protocol for UIView classes that can load themselves from a NIB file. To do so they must define the name of the NIB to be loaded and a way to obtain the UINib object where it resides.
-
Obtain the name of the NIB to load
Declaration
Swift
static var nibName: String { get }
-
Obtain the NIB that holds the view definition
Declaration
Swift
static var nib: UINib { get }
-
nibName
Default implementationDefault Implementation
Default implementation where the NIB name is the name of the class name
Declaration
Swift
public static var nibName: String { get }
-
nib
Default implementationDefault Implementation
Default implementation where the UINib is found in the same bundle as this protocol
Declaration
Swift
public static var nib: UINib { get }