{"id":16260120,"url":"https://github.com/kautenja/uipopupdatepicker","last_synced_at":"2025-04-08T13:50:27.519Z","repository":{"id":97116738,"uuid":"97573573","full_name":"Kautenja/UIPopupDatePicker","owner":"Kautenja","description":"a simple PopupDialog for selecting a datetime","archived":false,"fork":false,"pushed_at":"2017-08-18T00:34:11.000Z","size":61391,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:18:37.735Z","etag":null,"topics":["carthage","date-picker","datetime-picker","ios","ios-framework","popup-dialog","ui-components"],"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/Kautenja.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":"2017-07-18T08:26:58.000Z","updated_at":"2019-08-06T10:00:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"10a06d3e-9c2f-4ca2-88ac-5be6ef0aee9e","html_url":"https://github.com/Kautenja/UIPopupDatePicker","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"6def89a8f7ef2e1539723cc2ec6d925717f24dad"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2FUIPopupDatePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2FUIPopupDatePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2FUIPopupDatePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2FUIPopupDatePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kautenja","download_url":"https://codeload.github.com/Kautenja/UIPopupDatePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247855262,"owners_count":21007532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["carthage","date-picker","datetime-picker","ios","ios-framework","popup-dialog","ui-components"],"created_at":"2024-10-10T16:06:25.804Z","updated_at":"2025-04-08T13:50:27.485Z","avatar_url":"https://github.com/Kautenja.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIPopupDatePicker\n\n[![swift-badge][]][swift-link]\n[![carthage-badge][]][carthage-link]\n\n[swift-badge]: https://img.shields.io/badge/swift-4.0-orange.svg\n[swift-link]: https://swift.org/\n[carthage-badge]: https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\n[carthage-link]: https://github.com/Carthage/Carthage\n\n\n## Screenshots\n\n### With Time Picker\n\n\u003cimg src=\"https://user-images.githubusercontent.com/2184469/28429001-cf56a958-6d40-11e7-86f7-aeb86693bb4d.PNG\" width = 300\u003e\n\n### Without Time Picker\n\n\u003cimg src=\"https://user-images.githubusercontent.com/2184469/28429000-ce02e79c-6d40-11e7-9775-c37001308080.PNG\" width = 300\u003e\n\n## Requirements\n\nThis framework relies on (and installs):\n\n*   [PopupDialog](https://github.com/Orderella/PopupDialog)\n*   [FSCalendar](https://github.com/WenchaoD/FSCalendar)\n\n## Installation\n\n### Carthage\n\nAdd the following to your Cartfile\n\n```ruby\ngithub \"kautenja/UIPopupDatePicker\" ~\u003e 1.1\n```\n\n## Example\n\nTo run the example project, clone the repo, and build it on devices of you choosing.\n\n\n### Code Usage\n\n#### Creation\n\nThe main entry point for UIPopupDatePicker is the static `show` method.\n\n```swift\n_ = UIPopupDatePicker.show(on: self, with: nil, block: nil)\n```\n\n#### Customization\n\nThis function returns an instance of UIPopupDatePicker in case you might want to\nmanipulate some of the controller manually:\n\n```swift\nlet popup = UIPopupDatePicker.show(on: self, with: nil, block: nil)\npopup.headerText = \"Some text you might want as a title!\"\n```\n\n#### Callback\n\nTo respond to a change in the date use the callback handler:\n\n```swift\n_ = UIPopupDatePicker.show(on: self, with: Date()) { (selected) in\n    NSLog(\"UIPopupDatePicker returned \\(selected) in the callback\")\n}\n```\n\nthe parameter passed to the anonymous function an optional date (`Date?`). If the user:\n\n1. presses done\n\nthe callback will be executed with the date from the calendar and time from the picker. If\nthe time picker is hidden, the time will be the time that the popup was first created.\n\n2. presses clear\n\nthe callback will be executed passing `nil` as the parameter to the anonymous function.\nUse this to remove a date from something.\n\n3. presses cancel\n\nthe callback **IS NOT** executed and the popup dismisses with no changes to the parent\nview controller.\n\n### Code Samples\n\nsee [ViewController](PopupDatePicker/ViewController.swift) for a production example of how this might come together\n\n\n## Author\n\nKautenja, kautencreations@gmail.com\n\n\n## License\n\n**TL;DR** do what you want with it.\n\nUIPopupDatePicker is available under the MIT license. See the [LICENSE](./LICSENSE) file\nfor more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkautenja%2Fuipopupdatepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkautenja%2Fuipopupdatepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkautenja%2Fuipopupdatepicker/lists"}