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 support for custom Categories #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shduke
Copy link
Contributor

@shduke shduke commented Feb 5, 2025

Summary

Changing SymbolCategory from an enum to a struct allows for easier extension. Users can now define their own SymbolCategory without having to modify the symbol list text file.

Example

let circleCategory = SymbolCategory("circles", systemImage: "circle", isMember: { $0.name.contains("circle") })
SymbolPicker(symbol: $symbol, categories: [circleCategory])

This builds on #13 and keeps its functionality

Changing SymbolCategory from an enum to a struct allows for easier
extension. Users can now define their own Categories without having
to modify the symbol list text file.
@Fluffik3666
Copy link

Please add!

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.

2 participants