Swiftpack.co -  Package - StebinAlex/SACalendar
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
StebinAlex/SACalendar
Custom calendar for selecting date
.package(url: "https://github.com/StebinAlex/SACalendar.git", from: "1.0.8")

SACalendar

A Simple solution for getting date in dd/MM/yyyy.

Swift Package Manager.

Use following link to add package to your project and use latest version for stability.

https://github.com/StebinAlex/SACalendar.git

Usage

Import SACalendar

let calendar = SACalendar(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
calendar.center = view.center 
calendar.calendarBgColor = .blue 
calendar.selectedDates = ["01/01/2021", "08/01/2021" , "10/01/2021"] 
calendar.delegate = self 
calendar.updateUI() 
view.addSubview(calendar) 

use delegate SACalendarDelegate for getting clicked date.

Screenshot

Simulator Screen Shot - iPhone 12 - 2021-02-04 at 10 40 08

Author

Stebin Alex

Please share, If you found this useful. 😊

GitHub

link
Stars: 3
Last commit: 3 weeks ago

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