DurationPicker

screenshot of DurationPicker

A customizable picker for selecting time values with hours, minutes, and/or seconds

Overview

DurationPicker is an iOS library that offers a customizable control for inputting time values between 0 and 24 hours. It can be seamlessly integrated as a replacement for UIDatePicker with countDownTimer mode, providing additional functionality for time input.

Features

  • Styled to match UIDatePicker with countDownTimer mode
  • Multiple modes for selection of hours, minutes, and/or seconds
  • Option to specify intervals for hour, minute, and/or seconds
  • Support for minimum and maximum durations
  • Localization in 26+ languages
  • Built-in support for accessibility and VoiceOver

Swift Package Manager

To install DurationPicker using Swift Package Manager, add the package as a dependency in your Package.swift file.

dependencies: [
    .package(url: "url_to_duration_picker_repo", from: "1.0.0")
]

Manual Installation

You can download the DurationPicker library and add the Sources directory into your Xcode project.

Summary

DurationPicker offers a versatile solution for time input in iOS applications, with features such as customizable styling, support for multiple modes and intervals, localization, and accessibility features. Its easy integration process and availability under the MIT license make it a convenient choice for developers looking to enhance time input functionalities in their projects.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.