Skip to content

OptionButton() to have different display title and value #6

@Trexology

Description

@Trexology

Currently the value stored in UserDefault is the title of the option. Could use a feature where display title is different from the actual storage value

e.g:

OptionsButton(key: "language", title: "Language") {
[
Option(title: "English", optionId: 1), // Display "English" but value is "en_US"
Option(title: "Chinese", optionId: 2), // Display "Chinese" but value is "ch"
]
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions