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