Contents

init(id:label:isEnabled:defaultValue:currentValue:style:)

Creates an enumeration setting.

Declaration

init(id: String, label: HomeAccessorySettingLabel, isEnabled: Bool = true, defaultValue: Value? = nil, currentValue: Value? = nil, style: HomeAccessoryEnumSetting<Value>.SelectionStyle = .inline)

Parameters

  • id:

    A unique identifier for the setting.

  • label:

    The setting’s label.

  • isEnabled:

    A Boolean value that indicates whether people can change the setting. The default is true.

  • defaultValue:

    The option to use when nothing is selected.

  • currentValue:

    The selected option.

  • style:

    The style for presenting the options. The default is Inline.

See Also

Creating an enumeration setting