objc_getClass(_:)
Returns the class definition of a specified class.
Declaration
func objc_getClass(_ name: UnsafePointer<CChar>) -> Any!Parameters
- name:
The name of the class to look up.
Return Value
The Class object for the named class, or nil if the class is not registered with the Objective-C runtime.
Discussion
The implementation of this function is identical to the implementation of the objc_lookUpClass(_:) function.