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 way to specify a minimum value for progress. #6

Closed
omarsahl opened this issue Nov 23, 2019 · 1 comment
Closed

Add a way to specify a minimum value for progress. #6

omarsahl opened this issue Nov 23, 2019 · 1 comment
Assignees

Comments

@omarsahl
Copy link

Add a way that prevents the progress from going below a specified min value.

Something similar to this:

var progress = 0f
    set(value) {
      field = if (value >= max) max
      else if (values <= min) min
      else value
      updateProgressView()
      onProgressChangeListener?.onChange(field)
    }
@skydoves skydoves self-assigned this Nov 24, 2019
@skydoves
Copy link
Owner

@omar753sahl
Hi, It is released a new version 1.0,4.
Thank you for your contribution!

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

2 participants