SkillAgentSearch skills...

MDatePickerView

Quick and easy date picker.

Install / Use

/learn @MattLLLLL/MDatePickerView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center"> <img src="https://matt-bucket-images.s3-ap-southeast-1.amazonaws.com/MDatePickerView_Photo-3.png" width="200" height="420"/> <img src="https://matt-bucket-images.s3-ap-southeast-1.amazonaws.com/MDatePickerView.gif" width="200" height="420"/> <img src="https://matt-bucket-images.s3-ap-southeast-1.amazonaws.com/MDatePickerView_Photo-2.png" width="200" height="420"/> <img src="https://matt-bucket-images.s3-ap-southeast-1.amazonaws.com/MDatePickerView_Photo-4.png" width="200" height="420"/> </div> <h1></h1> <div align="center"> <p><a href="https://camo.githubusercontent.com/0188e770bbde9d9eae6720a70d5d3fad0952d77b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53776966742d322e322d6f72616e67652e737667" target="_blank"><img src="https://img.shields.io/badge/Swift-4-orange.svg"></a> <a href="http://cocoapods.org/pods/MDatePickerView."><img src="https://img.shields.io/cocoapods/v/MDatePickerView.svg?style=flat"></a> <a href="http://cocoapods.org/pods/glitchlabel"><img alt="License" src="https://img.shields.io/cocoapods/l/GlitchLabel.svg?style=flat"></a> <a href="http://cocoapods.org/pods/glitchlabel"><img alt="Platform" src="https://img.shields.io/cocoapods/p/GlitchLabel.svg?style=flat"></a> <a href="https://travis-ci.org/kciter/GlitchLabel"><img alt="Build Status" src="https://travis-ci.org/kciter/GlitchLabel.svg?branch=master"></a></p> </div>

Requirements

  • iOS 9.0
  • Xcode 9
  • Swift 4.0

Installation

You can install MDatePickerView in several ways:

Add source files to your project.

  • Use CocoaPods:
pod 'MDatePickerView'

Usage

import MDatePickerView

Usage example

lazy var MDate : MDatePickerView = {
        let mdate = MDatePickerView()
        mdate.Color = .gray
        mdate.delegate = self
        mdate.from = 1980
        mdate.to = 2100
        return mdate
    }()

Adopt the MDatePickerViewDelegate protocol in your view controller, e.g.

extension ViewController : MDatePickerViewDelegate {
    func mdatePickerView(selectDate: Date) {
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy - MM - dd"
        let date = formatter.string(from: selectDate)
        Label.text = date
    }
}

What's next

  • Any suggestions?

Contribution

  • If you found a bug, open an issue
  • If you have a feature request, open an issue
  • If you want to contribute, submit a pull request
  • If you have any issue or want help, please drop me a mail on bowei685@gmail.com

License

MDatePickerView is distributed under the MIT license. See LICENSE for details.

View on GitHub
GitHub Stars467
CategoryDevelopment
Updated5mo ago
Forks35

Languages

Swift

Security Score

97/100

Audited on Oct 16, 2025

No findings