Function

object_getClass(_:)

Returns the class of an object.

Declaration

func object_getClass(_ obj: Any?) -> AnyClass?

Parameters

object

The object you want to inspect.

Return Value

The class object of which object is an instance, or Nil if object is nil.

See Also

Working with Instances

func object_getIvar(Any?, Ivar)

Reads the value of an instance variable in an object.

func object_setIvar(Any?, Ivar, Any?)

Sets the value of an instance variable in an object.

func object_getClassName(Any?)

Returns the class name of a given object.

func object_setClass(Any?, AnyClass)

Sets the class of an object.