A Simple solution for getting date in dd/MM/yyyy.
Use following link to add package to your project and use latest version for stability.
https://github.com/StebinAlex/SACalendar.git
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.
Stebin Alex
Please share, If you found this useful. 😊
link |
Stars: 3 |
Last commit: 3 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco