Returns the name of an instance variable.


func ivar_getName(_ v: Ivar) -> UnsafePointer<Int8>?

Return Value

A C string containing the instance variable's name.

See Also

Working with Instance Variables

func ivar_getTypeEncoding(Ivar) -> UnsafePointer<Int8>?

Returns the type string of an instance variable.

func ivar_getOffset(Ivar) -> Int

Returns the offset of an instance variable.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software