NibLoadable

public protocol NibLoadable

Represents an object which is loaded from a nib.

  • nibName Default implementation

    Name of Nib to load component from. By default, the type’s simple name.

    Default Implementation

    Declaration

    Swift

    static var nibName: String { get }
  • nibBundle Default implementation

    Bundle 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 }
  • nib Extension method

    The specified component’s Nib.

    Declaration

    Swift

    static var nib: UINib { get }
  • loadFromNib() Extension method

    Loads 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?