UINib

class UINib : NSObject

Extension for UINib class.

  • Instantiating view from xib. Takes type in parameter which is returning later. Return nil if there is no match to instantiate.

    Declaration

    Swift

    class func get<T>(_ objectType: T.Type) -> T?