Contents

object_getClass(_:)

Returns the class of an object.

Declaration

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

Parameters

  • obj:

    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