Skip to content

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

Description

@omarsahl

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)
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions