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

Implemented a modal picker view for choosing a CGFloat value #15

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

Conversation

dherberger
Copy link

Needed to implement a picker for a floating point value, rather than perform additional validation steps off of a standard keyboard entry. As I was already utilizing your library to handle pickers in my app, I decided to implement this as a variant off of the BSModalPickerBase and to contribute my work back to your project in case you found it to be a useful offshoot.

Features:

  • Accepts a maximum CGFloat value
  • Works for presenting a picker for up to 3 significant figures
  • Automatically adjusts the various digit selection wheels to ensure the resulting selected value does not exceed the maximum value

Cheers!

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