Swiftpack.co - lee5783/TLMonthYearPicker as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by lee5783.
lee5783/TLMonthYearPicker 4.1.0
A simple month and year picker for iOS.
⭐️ 6
🕓 1 year ago
iOS
.package(url: "https://github.com/lee5783/TLMonthYearPicker.git", from: "4.1.0")

TLMonthYearPicker

A simple month and year picker for iOS app development. Now support Swift 5
Android version can be found here.

CocoaPods Compatible Carthage Compatible Swift Package Manager

TLMonthYearPicker

How it works

    self.monthYearPicker.calendar = calendar
    self.monthYearPicker.monthYearPickerMode = .monthAndYear // or '.year'
    self.monthYearPicker.minimumDate = self.minimumDate
    self.monthYearPicker.maximumDate = self.maximumDate
    self.monthYearPicker.delegate = self

    //Picker delegate
    func monthYearPickerView(picker: TLMonthYearPickerView, didSelectDate date: Date) {
        //do your work with selected date object
    }

Add to your project

There are 2 ways you can add TLMonthYearPickerView to your project:

Installation with CocoaPods

    pod 'TLMonthYearPicker'

For Swift 4.2, please use version 2.0.0:

    pod 'TLMonthYearPicker', '3.0.0'

For Swift 4.0, please use version 2.0.0:

    pod 'TLMonthYearPicker', '2.0.0'

For Swift 3.x, please use version 1.0.3:

    pod 'TLMonthYearPicker', '1.0.3'

Installation with Carthage

    github "lee5783/TLMonthYearPicker"

Installation with Swift Package Manager

    dependencies: [
        .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "4.1.0"))
    ]

Manual installation

Simply drag 'TLMonthYearPickerView.swift' into your project.

License

Usage is provided under the MIT License. See LICENSE for the full details.

GitHub

link
Stars: 6
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics