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 a custom config option for configuration Enums #9

Open
DaemonLoki opened this issue Jun 21, 2022 · 0 comments
Open

Add a custom config option for configuration Enums #9

DaemonLoki opened this issue Jun 21, 2022 · 0 comments
Labels
feature New feature or request
Projects
Milestone

Comments

@DaemonLoki
Copy link
Collaborator

Right now, we are only allowing pre-set values for configurations. An example is the Lifetime enum which only has options for the values .low, medium, and .high.

The advantage that brings is that developers do not need to know about the internals happening and the values that are being set for each of the cases.

The disadvantage is that it limits creativity and customization options.

We want to strike a sweet balance here and therefore suggest adding a .custom(CGFloat) option, making use of associated values for enums. Therefore developers not caring about the internals can still use the existing cases while more avid users can dive deep into customization with the .config option.

@DaemonLoki DaemonLoki added the feature New feature or request label Jun 21, 2022
@DaemonLoki DaemonLoki added this to the v1.1 milestone Jun 21, 2022
@DaemonLoki DaemonLoki added this to To do in Version 1.1 Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Development

No branches or pull requests

1 participant