All Projects → di2pra → D2pdatepicker

di2pra / D2pdatepicker

Licence: mit
Elegant and Easy-to-Use iOS Swift Date Picker

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to D2pdatepicker

Things Calendar
Simple but elegant datepicker for the web — inspired by Things for mac
Stars: ✭ 165 (-41.07%)
Mutual labels:  elegant, datepicker
Mdatepickerview
Quick and easy date picker.
Stars: ✭ 373 (+33.21%)
Mutual labels:  iphone, datepicker
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (-63.21%)
Mutual labels:  iphone, datepicker
SpecTools
Write less test code with this set of spec tools. Swift, iOS, testing framework independent (but works well with Quick/Nimble or directly).
Stars: ✭ 38 (-86.43%)
Mutual labels:  iphone
gidevice
communicate with iOS devices implemented with Golang
Stars: ✭ 156 (-44.29%)
Mutual labels:  iphone
Readinglist
📚 📱 Reading List - an iOS app to track personal reading lists
Stars: ✭ 266 (-5%)
Mutual labels:  iphone
Balance Open
Balance Open: A GPL3-licensed macOS menu bar app for all the world’s currencies.
Stars: ✭ 279 (-0.36%)
Mutual labels:  iphone
vue-datetime-picker
vue-datetime-picker / vue时间日期选择器
Stars: ✭ 16 (-94.29%)
Mutual labels:  datepicker
Ghost Theme Kaldorei
🎨 A Simple And Elegant Ghost Theme Derive From Default Theme Casper
Stars: ✭ 273 (-2.5%)
Mutual labels:  elegant
Ubottomsheet
iPhone Maps App bottom sheet - A Protocol Oriented Approach
Stars: ✭ 259 (-7.5%)
Mutual labels:  iphone
Rz Go
Ripzap - Fast and 0 allocs leveled JSON logger for Go ⚡️. Dependency free.
Stars: ✭ 256 (-8.57%)
Mutual labels:  elegant
LCAuthManager
一个简单、高效、易用的权限验证库,包括手势密码、Touch ID和Face ID;A comprehensive, efficient and easy-to-use rights verification library, including Gesture Password, Touch ID and Face ID.
Stars: ✭ 28 (-90%)
Mutual labels:  iphone
Taiyakianime
Stream anime and synchronize with your MyAnimeList(MAL) + SIMKL + Anilist on iOS and Android devices
Stars: ✭ 259 (-7.5%)
Mutual labels:  iphone
socket-chat
This project will help you build a chat app by using the Socket IO library.
Stars: ✭ 36 (-87.14%)
Mutual labels:  iphone
Instagram stories
Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
Stars: ✭ 275 (-1.79%)
Mutual labels:  iphone
vue-single-date-picker
A Vue project - single date picker
Stars: ✭ 16 (-94.29%)
Mutual labels:  datepicker
Focus Points
Plugin for Lightroom to show which focus point was active in the camera when a photo was taken
Stars: ✭ 272 (-2.86%)
Mutual labels:  iphone
Datepicker
Android DatePicker
Stars: ✭ 252 (-10%)
Mutual labels:  datepicker
jyutping
Cantonese Jyutping Keyboard for iOS. 粵語粵拼輸入法鍵盤
Stars: ✭ 23 (-91.79%)
Mutual labels:  iphone
Pushok
PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
Stars: ✭ 260 (-7.14%)
Mutual labels:  iphone

D2PDatePicker

CI Status Version License Platform

   
Screenshot 1 Screenshot 1Screenshot 2

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Example Code: Programmatical Initialization


import D2PDatePicker

class ViewController: UIViewController {
    
    var datePickerView: D2PDatePicker!

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        // Init DatePickerView
        datePickerView = D2PDatePicker(frame: .zero, date: Date())
        datePickerView.translatesAutoresizingMaskIntoConstraints = false
        
        // Set the Delegate
        datePickerView.delegate = self
        self.view.addSubview(datePickerView)
        
        self.view.addConstraints([
            NSLayoutConstraint(item: datePickerView, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 250),
            NSLayoutConstraint(item: datePickerView, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 200),
            NSLayoutConstraint(item: datePickerView, attribute: .centerX, relatedBy: .equal, toItem: self.view, attribute: .centerX, multiplier: 1, constant: 0),
            NSLayoutConstraint(item: datePickerView, attribute: .centerY, relatedBy: .equal, toItem: self.view, attribute: .centerY, multiplier: 1, constant: 0)])

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

extension ViewController: D2PDatePickerDelegate {
    
    func didChange(toDate date: Date) {
        print(date)
    }
    
}

Documentation

All of the methods and properties available for D2PDatePicker are documented below.

Changing the Main Color

The mainColor Property

Use the mainColor property of D2PDatePicker to change the color. Example usage:

self.datePickerView.mainColor = .red

Delegate

D2PDatePicker uses a delegate to receive date change events. The delegate object must conform to the D2PDatePickerDelete protocol, which is composed of the method:

  • didChange(toDate date: Date) Tells the delegate that the selected the date get updated.

Requirements

No Requirements

Installation

D2PDatePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'D2PDatePicker'

Author

Di2pra LinkedIn

Credits

Credit to http://felicegattuso.com/projects/datedropper/ for the inspiration

License

D2PDatePicker is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].