Function

property_copyAttributeValue(_:_:)

Returns the value of a property attribute given the attribute name.

Declaration

func property_copyAttributeValue(_ property: objc_property_t, _ attributeName: UnsafePointer<Int8>) -> UnsafeMutablePointer<Int8>?

Parameters

property

The property whose value you are interested in.

attributeName

A C string representing the name of the attribute.

Return Value

The value string of the attributeName attribute, if one exists in property; otherwise, nil. You must free the returned value string with free().

See Also

Working with Properties

func property_getName(objc_property_t)

Returns the name of a property.

func property_getAttributes(objc_property_t)

Returns the attribute string of a property.

func property_copyAttributeList(objc_property_t, UnsafeMutablePointer<UInt32>?)

Returns an array of property attributes for a given property.