Simple UIDatePicker -> Requires Swift 3.0
- Drag and drop SCPopDatePicker.swift into project.
- Add SCPopDatePickerDelegate to ViewController
#Usage
let datePicker = SCPopDatePicker()
datePicker.tapToDismiss = true //Optional
datePicker.datePickerType = SCDatePickerType.date //Optional
datePicker.showBlur = true // Optional
datePicker.btnFontColour = UIColor.redColor() //Optional
datePicker.delegate = self
datePicker.show(attachToView: self.view)
#Delegate Protocol
func scPopDatePickerDidSelectDate(date: NSDate) {
//returns NSDate
}
#Optionals
public var showBlur = true //Default Yes
public var datePickerType: SCDatePickerType!
public var tapToDismiss = true //Default Yes
public var btnFontColour = UIColor.blueColor() //Default Blue
public var btnColour = UIColor.clearColor() //Default Clear
public var datePickerStartDate = NSDate() //Optional
public var showShadow = true //Optional
public var showCornerRadius = true // Optional