NibLoadable
public protocol NibLoadable
Represents an object which is loaded from a nib.
-
nibNameDefault implementationName of Nib to load component from. By default, the type’s simple name.
Default Implementation
Declaration
Swift
static var nibName: String { get } -
nibBundleDefault implementationBundle from where to load the nib. By default, the main bundle; except for classes, it defaults to the class’ bundle.
Default Implementation
Declaration
Swift
static var nibBundle: Bundle { get } -
nibExtension methodThe specified component’s Nib.
Declaration
Swift
static var nib: UINib { get } -
loadFromNib()Extension methodLoads the nib for the specific component.
Warning
This may through an ObjC NSException if there is no nib with that name in that bundle.Seealso
Bundle.loadNib(named:)Declaration
Swift
static func loadFromNib<T>() -> T?
NibLoadable Protocol Reference