Contents

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) -> Bool

Parameters

  • aClass:

    A class object.

Return Value

YES if the receiving class is a subclass of—or identical to—aClass, otherwise NO.

See Also

Identifying Classes