struct RangePercent100thsStructDefines an operational range, from a minimum to a maximum percentage. for a dimension of a closure.
-
The minimum value in hundredths of a percent, ranging from 0.00% to
max.Declaration
Swift
let min: UInt16 -
The maximum value in hundredths of a percent, ranging from
minto 100.00%.Declaration
Swift
let max: UInt16 -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?