Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)|