Contents

setValue(_:forCustomKey:)

Sets the value for a custom attribute key.

Declaration

func setValue(_ value: (any NSSecureCoding)?, forCustomKey key: CSCustomAttributeKey)

Parameters

  • value:

    The value of the custom attribute. Values must be common property list types, such as Nsstring, Nsnumber, Nsnull, Nsdata, or Nsdate, or an array of property list types.

  • key:

    The custom attribute key.

See Also

Accessing custom attributes