Loadable
public protocol Loadable
Lodable protocol to load from nib
-
loadFromNib(withFrame:identifier:bundle:)Extension methodload
UIViewfrom xibDeclaration
Swift
public static func loadFromNib(withFrame frame: CGRect? = nil, identifier: String? = nil, bundle: Bundle = Bundle.main) -> Self?Parameters
frameCGRect default = nil
bundledefault = Bundle.main
-
loadFromOutlet(bundle:)Extension methodload
UIViewfrom outletDeclaration
Swift
@discardableResult public func loadFromOutlet<T>(bundle: Bundle = Bundle.main) -> T? where T : UIViewParameters
bundledefault = Bundle.main
View on GitHub
Loadable Protocol Reference