Property
class Property
An object representing a style attribute of a Layer.
-
The property’s unique identifier.
Declaration
var id: String { get } -
The property’s name.
Declaration
var name: String { get } -
CALayer key path for this propery, if applicable.
Declaration
var layerKeyPath: String? { get } -
The type of layer this property applies to.
Declaration
var layerType: String { get } -
The property’s default value.
Declaration
var defaultValue: Value { get } -
Compares two values for equality.
The
equalsfunction is invoked using infix notation as in the following code snippet:lhs == rhs.Declaration
func equals(_ lhs: Property) -> BoolParameters
lhsA value.
rhsAnother value.
Return Value
trueif thelhsandrhsare equal,falseotherwise.