Popularity
1.6
Declining
Activity
0.0
Stable
43
5
9

Programming language: Swift
License: MIT License
Tags: UI     Calendar     PickerView    
Latest version: v1.0.3

DPPickerManager alternatives and similar libraries

Based on the "PickerView" category.
Alternatively, view DPPickerManager alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of DPPickerManager or a related project?

Add another 'PickerView' Library

README

DPPickerManager

CI Status Version License Language Supports Platform

Twitter: @DaniloPriore Documentation

UIPicker inside a UIAlertController

HOW TO USE :


// Strings Picker
let values = ["Value 1", "Value 2", "Value 3", "Value 4"]
DPPickerManager.shared.showPicker(title: "Strings Picker", selected: "Value 1", strings: values) { (value, index, cancel) in
    if !cancel {
        // TODO: you code here
        debugPrint(value as Any)
    }
}
// Date Picker
let min = Date()
let max = min.addingTimeInterval(31536000) // 1 year
DPPickerManager.shared.showPicker(title: "Date Picker", selected: Date(), min: min, max: max) { (date, cancel) in
    if !cancel {
        // TODO: you code here
        debugPrint(date as Any)
    }
}
// Time Picker (custom picker)
DPPickerManager.shared.showPicker(title: "Time Picker", picker: { (picker) in
    picker.date = Date()
    picker.datePickerMode = .time
}) { (date, cancel) in
    if !cancel {
        // TODO: you code here
        debugPrint(date as Any)
    }
}


*Note that all licence references and agreements mentioned in the DPPickerManager README section above are relevant to that project's source code only.