Skip to content
/ sambag Public

Android Time, Month-Year, and Date pickers implemented in Swift for iOS development

License

Notifications You must be signed in to change notification settings

mownier/sambag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sambag

Android Time, Month-Year, and Date pickers implemented in Swift for iOS development

Date Picker

Specifying min and max date

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

let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = true 

Hiding day of week

let vc = SambagDatePickerViewController()
vc.hasDayOfWeek = false 

Screenshots

Time Picker

Theme_Dark Theme_Light

Month Year Picker

Month_Year_Dark Month_Year_Light

Date Picker

Date_Dark Date_Light

About

Android Time, Month-Year, and Date pickers implemented in Swift for iOS development

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published