Contents

class_getName(_:)

Returns the name of a class.

Declaration

func class_getName(_ cls: AnyClass?) -> UnsafePointer<CChar>

Parameters

  • cls:

    A class object.

Return Value

The name of the class, or the empty string if cls is Nil.

See Also

Working with Classes