Function

class_getImageName(_:)

Returns the name of the dynamic library a class originated from.

Declaration

func class_getImageName(_ cls: AnyClass?) -> UnsafePointer<Int8>?

Parameters

cls

The class you are inquiring about.

Return Value

A C string representing the name of the library containing the cls class.

See Also

Working with Libraries

func objc_copyImageNames(UnsafeMutablePointer<UInt32>?)

Returns the names of all the loaded Objective-C frameworks and dynamic libraries.

func objc_copyClassNamesForImage(UnsafePointer<Int8>, UnsafeMutablePointer<UInt32>?)

Returns the names of all the classes within a specified library or framework.