{"id":45469680,"url":"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker","last_synced_at":"2026-03-07T12:01:04.917Z","repository":{"id":219110031,"uuid":"722013745","full_name":"SimformSolutionsPvtLtd/SSDateTimePicker","owner":"SimformSolutionsPvtLtd","description":"SSDateTimePicker is a SwiftUI library that simplifies date and time selection in your applications, providing a variety of features and a customizable UI for both date and time pickers.","archived":false,"fork":false,"pushed_at":"2025-01-10T06:08:08.000Z","size":1704,"stargazers_count":46,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-10T21:30:00.158Z","etag":null,"topics":["calendar-widget","calender","calenderview","datepicker","datepicker-component","ios","swiftui","swiftui-example","time"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimformSolutionsPvtLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-22T08:57:01.000Z","updated_at":"2026-01-29T07:23:09.000Z","dependencies_parsed_at":"2024-06-04T11:39:27.144Z","dependency_job_id":"4b873900-3d10-451c-a1f4-3dec6e81eaa6","html_url":"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker","commit_stats":null,"previous_names":["simformsolutionspvtltd/ssdatetimepicker"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SimformSolutionsPvtLtd/SSDateTimePicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSDateTimePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSDateTimePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSDateTimePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSDateTimePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSDateTimePicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSDateTimePicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar-widget","calender","calenderview","datepicker","datepicker-component","ios","swiftui","swiftui-example","time"],"created_at":"2026-02-22T11:00:17.607Z","updated_at":"2026-03-07T12:01:04.909Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","funding_links":[],"categories":["iOS"],"sub_categories":["SwiftUI"],"readme":"\n\n\u003cimg width=\"1280\" alt=\"SSDateTimePicker\" src=\"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/assets/151725480/8628147d-ec3d-4423-847a-c5eb0177ff45\"\u003e\n\n\n# SSDateTimePicker\n\nSSDateTimePicker is a SwiftUI library that simplifies date and time selection in your applications, providing a variety of features and a customizable UI for both date and time pickers.\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eTime Picker\u003c/th\u003e\n            \u003cth\u003eDate Picker\u003c/th\u003e\n            \u003cth\u003eMultiple Date Picker\u003c/th\u003e\n            \u003cth\u003eDate Range Picker\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003cimg  width=200px src=\"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/assets/151725480/5838d32f-5126-4009-9d01-88fbd2afa482\" /\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003cimg width=200px src=\"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/assets/151725480/0cbae52b-4876-4e3b-b2a5-bfdd32e73618\" /\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003cimg  width=200px src=\"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/assets/151725480/b4b0d3a4-aade-4eaf-aec4-aed15b787ea7\" /\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003cimg  width=200px src=\"https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/assets/151725480/2c4ed25c-dd70-4b0e-b6ac-6ad375b24188\" /\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n## Features!\n* Single Date Selection\n* Multiple Date Selection\n* Date Range Selection\n* Disable Past or Future Dates\n* Disable Specific Dates\n* Limit date selection to a predefined range\n* Time selection with a clock-style interface\n* Personalize fonts and colors for seamless integration with your app's design.\n\n## Requirements\n\n* iOS 15.0+\n* Xcode 12+\n\n## Installation\n\n### [Swift Package Manager](https://swift.org/package-manager/)\n\nYou can install `SSDateTimePicker` using Swift Package Manager by:\n\n1. Go to `Xcode` -\u003e `File` -\u003e `Add Package Dependencies...`\n2. Add package URL [https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker][SSDateTimePicker]\n\n### [CocoaPods](http://cocoapods.org)\n\nTo install `SSDateTimePicker`, simply add the following line to your Podfile:\n\n```swift\npod 'SSDateTimePicker'\n```\n\n\n## Usage\n\n### SSDatePicker\n\nSSDatePicker offers versatile date selection options, including single date, multiple date, and date range selection. Follow this guide to set up the date picker according to your preferences:\n\n1. import `SSDateTimePicker`.\n2. Add a bool to control date picker presentation state.\n3. Add a `SSDatePicker` in your view.\n\n\n```swift\nimport SSDateTimePicker\n\nstruct PickerExample: View {\n\n    @State var showDatePicker: Bool = false\n    @State var selectedDate: Date?\n\n    var body: some View {\n        ZStack {\n            Text(\"Your view\")\n            SSDatePicker(showDatePicker: $showDatePicker)\n        }\n    }\n}\n```\n\n###### Single Date Selection Picker\n\n1. Add `.selectedDate(selectedDate)` modifier to pre-select specific date.\n2. Set the callback closure ` .onDateSelection` to get selected date.\n\n```swift\n SSDatePicker(showDatePicker: $showDatePicker)\n     .selectedDate(selectedDate)\n     .onDateSelection({ date in\n         selectedDate = date\n     })\n```\n\n###### Multiple date selection picker\n1. To enable multiple date selection add `.enableMultipleDateSelection()` modifier.\n2. Add `.selectedDates(selectedDates)` modifier to pre-select specific dates.\n4. Set `.onMultiDateSelection` callback to get selected multiple dates.\n\n```swift\nSSDatePicker(showDatePicker: $showDatePicker)\n    .enableMultipleDateSelection()\n    .selectedDates(selectedDates)\n    .onMultiDateSelection({ dates in\n         selectedDates = dates\n    })\n```\n\n###### Date Range Selection Picker\n\n1. To enable date range selection add `.enableDateRangeSelection()` modifier.\n2. Add `.selectedDateRange(selectedDateRange))` modifier to pre-select specific dates.\n2. Sets `.onDateRangeSelection` callback to get selected date range.\n\n```swift\n  SSDatePicker(showDatePicker: $showDatePicker)\n      .enableDateRangeSelection()\n      .selectedDateRange(selectedDateRange)\n      .onDateRangeSelection({ dateRange in\n          selectedDateRange = dateRange\n      })\n```\n\n### SSTimePicker\n\n1. import `SSDateTimePicker`\n2. Add a bool to control date-time picker presentation state\n3. Add a `SSTimePicker` in your view\n4. Add `.selectedTime(pickerViewModel.selectedTime)` modifier to pre-select specific dates.\n2. Set `.onTimeSelection` callback to get selected date range.\n\n```swift\nimport SSDateTimePicker\n\nstruct TimePickerExample: View {\n\n    @State var showTimePicker: Bool = false\n    @State var selectedTime: Time?\n\n    var body: some View {\n        ZStack {\n            Text(\"Your view\")\n            SSTimePicker(showTimePicker: $showTimePicker)\n                .selectedTime(selectedTime)\n                .onTimeSelection { time in\n                    selectedTime = time\n                }\n        }\n    }\n}\n```\n\n## Configuration Guide\n\nExplore the following modifiers to effortlessly customize the UI and behaviour of SSDateTimePicker to suit your preferences.\n\n### SSDatePicker\n\n###### Behavioral Modifiers\n\n- `.minimumDate(_ date: Date)` - Set the minimum selectable date in the date picker.\n- `.maximumDate(_ date: Date)` - Set the maximum selectable date in the date picker.\n- `.disableDates(_ dates: [Date])` - Block the selection of specific dates.\n- `.disablePastDate()` - Prevent the selection of past dates.\n- `.disableFutureDate()` - Prevent the selection of future dates.\n- `.currentMonth(_ date: Date)` - Set the initial display month in the date picker, providing a specific starting point when the picker is opened. By default it will open current month claendar.\n- `.enableDateRangeSelection()` -  Enable the selection of date range.\n- `.enableMultipleDateSelection()` - Enable the selection of multiple dates.\n- `.selectedDate(_ date: Date?)` - Pre-select a specific date in the date picker.\n- `.selectedDates(_ dates: [Date]?)` - Pre-select a specific dates in the date picker.\n- `.selectedDates(_ dateRange: DateRange?)` - Pre-select a specific date range in the date picker.\n- `.calendar(_ calendar: Calendar)` - Set the calendar used by the date picker.\n\n###### UI Modifiers\n\n- `.themeColor(pickerBackgroundColor: Color, primaryColor: Color)` - Define the overall theme color, where the primary color sets the background of selected dates, buttons and selectected month, year foreground.\n- `.todayColor(backgroundColor: Color?, foregroundColor: Color?)` - Highlight today's date with specific foreground and background colors.\n- `.todayDateSelectionColor(backgroundColor: Color?, foregroundColor: Color?)` - Adjust the foreground and background colors for the today's date selection state.\n- `.headerTitleStyle(color: Color?, font: Font?)` - Customize the font and color of the header text.\n- `.headerDateStyle(color: Color?, font: Font?)` - Customize font and color for header date text.\n- `.weekdayStyle(color: Color?, font: Font?)`  - Adjust the text color and font of weekdays.\n- `.dateStyle(color: Color?, font: Font?)` - Customize color and font for date text.\n- `.monthStyle(color: Color?, font: Font?)` - Modify the font and color for the selected month.\n- `.selectedMonthStyle(color: Color?, font: Font?)` - Customize font and color for selected month.\n- `.yearStyle(color: Color?, font: Font?) -\u003e SSDatePicker ` - Customize the text color and font for the year text.\n- `.selectedYearStyle(color: Color?, font: Font?)` - Adjust the font and color for the selected year.\n- `.buttonStyle(color: Color?, font: Font?)` -  Set the font and color for the buttons.\n- `.currentMonthYearLabelStyle(color: Color?, font: Font?)` -  Customize the color and font for the label displaying the current month and year in the bottom navigation.\n- `.selectedDateColor(backgroundColor: Color?, foregroundColor: Color?) ` - Change the foreground and background color for selected dates.\n- `.pickerBackgroundColor(_ color: Color) ` - Define the background color of the entire picker view.\n- `.sepratorLineColor(_ color: Color)` - Change the color of the separator line within the picker.\n- `.popupOverlayColor(_ color: Color)` - Customize the color of the popup overlay,\n\n### SSTimePicker\n\n- `themeColor(pickerBackgroundColor: Color, primaryColor: Color, timeLabelBackgroundColor: Color)` - Apply a custom color scheme to the time picker, primary color is designated for the clock hand and the foreground of the time label.\n- `selectedTime(_ time: Time?)` - Set the initially selected time for the time picker.\n- `headerTitleStyle(color: Color?, font: Font?)` - Customize the style of the header title.\n- `timeLabelStyle(color: Color?, font: Font?)` - Customize time label(HH:MM) font and foreground color.\n- `timeFormatStyle(color: Color?, font: Font?)` - Modify Time format(AM/PM) color and font.\n- `selectedTimeFormatStyle(color: Color?, font: Font?)` - Customize selected time format(AM/PM) style.\n- `clockNumberStyle(color: Color?, font: Font?)` - Customize the style of the clock numbers.\n- `buttonStyle(color: Color?, font: Font?)` - Customize buttons font and foreground color.\n\n## Find this samples useful? :heart:\n\nSupport it by joining [stargazers] :star: for this repository.\n\n## How to Contribute :handshake:\n\nWhether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! :muscle: \\\nCheck out our __[Contributing Guide]__ for ideas on contributing.\n\n## Bugs and Feedback\n\nFor bugs, feature feature requests, and discussion use [GitHub Issues].\n\n## Other Mobile Libraries\n\nCheck out our other libraries [Awesome-Mobile-Libraries].\n\n## License\n\nDistributed under the MIT license. See [LICENSE] for details.\n\n\n\u003c!-- Reference links --\u003e\n\n[SSDateTimePicker]:            https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker\n\n[Swift Package Manager]:    https://www.swift.org/package-manager\n\n[stargazers]:               https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/stargazers\n\n[Awesome-Mobile-Libraries]: https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries\n\n[license]:                  LICENSE\n\n[Github Issues]:            https://github.com/SimformSolutionsPvtLtd/SSDateTimePicker/issues\n\n[Contributing Guide]:       CONTRIBUTING.md\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSDateTimePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSDateTimePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSDateTimePicker/lists"}