Swiftpack.co - freyaariel/watch-date-picker as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by freyaariel.
freyaariel/watch-date-picker 0.1.1
A customizable date picker for watchOS and SwiftUI.
⭐️ 14
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/freyaariel/watch-date-picker.git", from: "0.1.1")

Watch Date Picker

A customizable date picker for watchOS and SwiftUI.


Add the https://github.com/freyaariel/watch-date-picker package, and add the WatchDatePicker product to your app’s WatchKit extension target.


Online documentation is available at freyaariel.github.io/documentation/watchdatepicker.


The DatePicker view displays a button with a title and the selected value. When pressed, it presents a sheet with user interfaces for selecting date and time.

Date & Time Mode

DatePicker("Date & Time", selection: $value)

Date Mode

DatePicker("Date", selection: $value, mode: .date, maximumDate: Date())

Time Mode

DatePicker("Time", selection: $value, mode: .time, twentyFourHours: true)

Outside of Lists

Both DatePickerView and TimePickerView can be used independently of DatePicker.

Date Picker View

DatePickerView(selection: $value)
DatePickerView(selection: $value)
  .environment(\.locale, Locale(identifier: "fr"))

Time Picker View

TimePickerView(selection: $value)
  selection: $value,
  selectionIndicatorRadius: 7,
  selectionIndicatorColor: .mint,
  focusColor: .purple,
  amPMHighlightColor: .yellow,
  markSize: CGSize(width: 5.5, height: 3),
  markFill: AnyShapeStyle(Color.white.opacity(0.75)),
  emphasizedMarkSize: CGSize(width: 2, height: 7),
  emphasizedMarkFill: AnyShapeStyle(Color.pink)


Stars: 14
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Watch Date Picker 0.1.0
20 weeks ago

Initial release 🎉

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics