Skip to content

Added support for Date Picker Ranges in Skip Lite#352

Merged
marcprux merged 3 commits intoskiptools:mainfrom
fhasse95:Date-Picker-Range-Skip-Lite
Mar 20, 2026
Merged

Added support for Date Picker Ranges in Skip Lite#352
marcprux merged 3 commits intoskiptools:mainfrom
fhasse95:Date-Picker-Range-Skip-Lite

Conversation

@fhasse95
Copy link
Contributor

@fhasse95 fhasse95 commented Mar 12, 2026

This PR adds support for Date Picker Ranges for Skip Lite apps.

To try it out, you can check out the DatePickerPlayground in Skip Showcase.

Related PRs:


Thank you for contributing to the Skip project! Please review the contribution guide at https://skip.dev/docs/contributing/ for advice and guidance on making high-quality PRs.

Use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device
  • REQUIRED: I have checked whether this change requires a corresponding update in the Skip Fuse UI repository (link related PR if applicable)
  • OPTIONAL: I have added an example of any UI changes in the Showcase sample app

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

@cla-bot cla-bot bot added the cla-signed label Mar 12, 2026
@fhasse95 fhasse95 marked this pull request as ready for review March 12, 2026 21:35
Copy link
Member

@marcprux marcprux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a great addition! It'd be doubly-great if we could get SkipFuseUI support in https://github.com/skiptools/skip-fuse-ui/blob/main/Sources/SkipSwiftUI/Controls/DatePicker.swift for the new constructors 🙏

public init(getSelection: @escaping () -> Date, setSelection: @escaping (Date) -> Void, bridgedDisplayedComponents: Int, bridgedLabel: any View) {
self.init(selection: Binding(get: getSelection, set: setSelection), displayedComponents: DatePickerComponents(rawValue: bridgedDisplayedComponents), label: { bridgedLabel })
}
public init(selection: Binding<Date>, in range: ClosedRange<Date>, displayedComponents: DatePickerComponents = [.hourAndMinute, .date], @ViewBuilder label: () -> any View) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need // SKIP @bridge for all these constructors to get native support in SkipFuseUI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. I wasn't sure about that, because it seems like the constructors already exist in Skip Fuse: https://github.com/skiptools/skip-fuse-ui/blob/6ab2af03c675e1c748c5889032e6007e7ec215af/Sources/SkipSwiftUI/Controls/DatePicker.swift#L42.

That's why I haven't changed anything there yet. Or should they now be merged into Skip UI and then bridged? 😅

@fhasse95 fhasse95 marked this pull request as draft March 17, 2026 22:00
@fhasse95 fhasse95 marked this pull request as ready for review March 18, 2026 08:31
@fhasse95 fhasse95 requested a review from marcprux March 18, 2026 20:04
@marcprux
Copy link
Member

I'll get this in now and we can look into Fuse support in a future PR.

@marcprux marcprux merged commit 1d38a61 into skiptools:main Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants