Type Method

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

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

See Also

Identifying Classes

class func superclass()

Returns the class object for the receiver’s superclass.