Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mownier/sambag
Android Time, Month-Year, and Date pickers implemented in Swift for iOS development
https://github.com/mownier/sambag
android-ui-insipired date-picker ios month-year-picker swift3 time-picker
Last synced: 3 days ago
JSON representation
Android Time, Month-Year, and Date pickers implemented in Swift for iOS development
- Host: GitHub
- URL: https://github.com/mownier/sambag
- Owner: mownier
- License: mit
- Created: 2017-06-02T06:54:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-12T06:34:19.000Z (about 2 years ago)
- Last Synced: 2024-09-13T02:44:29.590Z (15 days ago)
- Topics: android-ui-insipired, date-picker, ios, month-year-picker, swift3, time-picker
- Language: Swift
- Homepage:
- Size: 227 KB
- Stars: 51
- Watchers: 6
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sambag
Android Time, Month-Year, and Date pickers implemented in Swift for iOS development## Date Picker
Specifying min and max date
```swift
let vc = SambagDatePickerViewController()
var limit = SambagSelectionLimit()
limit.selectedDate = Date()
let calendar = Calendar.current
limit.minDate = calendar.date(
byAdding: .year,
value: -50,
to: limit.selectedDate,
wrappingComponents: false
)
limit.maxDate = calendar.date(
byAdding: .year,
value: 50,
to: limit.selectedDate,
wrappingComponents: false
)
vc.limit = limit
```Showing day of week
```swift
let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = true
```Hiding day of week
```swift
let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = false
```## Screenshots
### Time Picker
|||
|---|---|
|![Theme_Dark](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/theme_dark.png)| ![Theme_Light](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/theme_light.png)|### Month Year Picker
|||
|---|---|
|![Month_Year_Dark](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/month_year_dark.png) | ![Month_Year_Light](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/month_year_light.png)|### Date Picker
|||
|---|---|
|![Date_Dark](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/date_picker_dark.png) | ![Date_Light](https://raw.githubusercontent.com/mownier/sambag/master/Screenshots/date_picker_light.png)|