Skip to content

Setting minimumDuration to 10 seconds while showing .hourMinute does not respect minimum #7

@sindresorhus

Description

@sindresorhus

Basically:

DurationPickerView(
	$duration,
	components: .hourMinute,
	minumumDuration: 10
)

Results in:

Image

But I don't think it should allow 0 min here. Same for .hour and all the modes that do not show seconds.

Also the same problem if we specify .hour and minimum as 10 minutes:

DurationPickerView(
	$duration,
	components: .hour,
	minumumDuration: 600
)

I'm using #5, but same should be the case with the UIKit version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions