ggasimzada-graveyard / FxDatePicker

A customizable DatePicker for iOS SDK.
MIT License
9 stars 3 forks source link

swift 2.0 #1

Closed longxianlin closed 8 years ago

longxianlin commented 8 years ago

`` init() { self.calendar = NSCalendar.currentCalendar(); self.components = NSDateComponents(); }

    init(calendar : NSCalendar, order : [String : Int]) {
        self.calendar = calendar
        self.components = calendar.components([.Year, .Month, .Day, .Hour, .Minute, .Minute], fromDate: NSDate())
        self.order = order;
    }

/ override init() { super.init(); initialize(); self.frame = CGRect(x: 0, y: 0, width: 420, height: 216); }/

GasimGasimzada commented 8 years ago

Please make a pull request and I will accept it.

GasimGasimzada commented 8 years ago

Swift 2.0 support added. I will keep working on the features because you have shown interest in my project. Thank you for the feedback!