UIViewLoading

public protocol UIViewLoading

Extension on UIView that allows for the easy loading of a UIView from a Nib. Simply call your UIView and provide a NSBundle, nil is acceptable

  • loadFromNib(_:) Extension method

    Function that allows for a UIView to be loaded from a nib call YourView.loadFromNib(yourBundle)

    Declaration

    Swift

    static func loadFromNib(_ bundle: Bundle?) -> Self

    Parameters

    bundle

    NSBundle for the bundle the nib is in, nil is acceptable

    Return Value

    The properly instantiated UINib