isSubclass(of:)
Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.
Declaration
class func isSubclass(of aClass: AnyClass) -> BoolParameters
- aClass:
A class object.
Return Value
YES if the receiving class is a subclass of—or identical to—aClass, otherwise NO.