Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The selection indicator should be configurable #4

Open
toastersocks opened this issue Mar 8, 2024 · 1 comment
Open

The selection indicator should be configurable #4

toastersocks opened this issue Mar 8, 2024 · 1 comment

Comments

@toastersocks
Copy link
Owner

Situation

Right now the selection indicator is always a checkmark that matches SwiftUI's Picker. It might be nice for this to be configurable.

Solution

There should be a way to configure what the selection indicator is with the current checkmark being default.

Possible approaches

some View

Pass in a ViewBuilder closure to make the selection indicator be whatever we want.

A set of defaults

There could be a default set of selection indicators such as checkmark, bullet, highlight, radioButton, etc...

Combo

We could combine these two approaches with a set of built-in indicators, but also allow a totally custom indicator.

View Modifier vs. init parameter

I would lean more towards a view modifier rather than init parameter for this one.

@toastersocks
Copy link
Owner Author

Let's make it a modifier .selectionIndicator that takes a view or view builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant