Function

class_getClassVariable(_:_:)

Returns the Ivar for a specified class variable of a given class.

Declaration

func class_getClassVariable(_ cls: AnyClass!, _ name: UnsafePointer<Int8>!) -> Ivar!

Parameters

cls

The class definition whose class variable you wish to obtain.

name

The name of the class variable definition to obtain.

Return Value

A pointer to an Ivar data structure containing information about the class variable specified by name.