Skip to content

1amageek/TimeRangePicker

Repository files navigation

TimeRangePicker

TimeRangePicker is a SwiftUI view that provides a user-friendly interface for selecting a range of time. It displays a circular clock face and allows users to select a start and end time by dragging around the clock.

2023-06-05.0.40.51.mov

Features

  • Interactive time selection using a visual clock interface.
  • Customizable minimum and maximum time differences.
  • Supports both light and dark mode.
  • Includes Haptic feedback.

Installation

Swift Package Manager

You can use The Swift Package Manager to install TimeRangePicker by adding the proper description to your Package.swift file:

.package(url: "https://github.com/YOUR_GITHUB_USERNAME/TimeRangePicker.git", from: "1.0.0"),

Usage

To use TimeRangePicker in your SwiftUI views:

@State var timeRange = 3600..<7200 // 1:00 - 2:00

var body: some View {
    TimeRangePicker($timeRange)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages