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

Add new option set picker #53

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add new option set picker #53

wants to merge 2 commits into from

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Jan 8, 2025

Add new option set picker

♻️ Current situation & Problem

This PR adds a new view that makes it easier to work with OptionSet as the selection of a Picker view. SwiftUI Picker doesn't natively support multi-selection picker. The OptionSetPicker does that by facilitating the OptionSet protocol.
Sadly we cannot fully re-use PickerStyles and needed to create our own enum-based solution. Currently we support rendering the picker as a menu or a inline view like, e.g., in a List.

⚙️ Release Notes

  • Added new OptionSetPicker view.

📚 Documentation

Added documentation and added it to the DocC catalog.

✅ Testing

TBA

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

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

Successfully merging this pull request may close these issues.

1 participant