Skip to content

scrainie/SCPopDatePicker

Repository files navigation

SCPopDatePicker

Simple UIDatePicker -> Requires Swift 3.0

  1. Drag and drop SCPopDatePicker.swift into project.
  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages