PresetSynonyms

struct PresetSynonyms

Synonyms for the preset in a given language.

  • ISO 639-1 language code, for example, en for English.

    Declaration

    Swift

    let language: String
  • Synonym of the preset, with the first string in this list being used as the canonical name of the preset in the given language.

    Declaration

    Swift

    let synonyms: [String]
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if 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)?