BACalendar is a customizable calendar for ios.
BACalendar requires iOS 10+ and is compatible with Swift 4.2 projects.
pod 'BACalendar'
or
you can download the source code and integrate to your code.
BACalendar was designed to be used effortlessly.
import BACalender
implement the delegate CalendarPopUpDelegate
func dateChaged(date: Date) {
...
}
Use the function below
func showCalendar() {
let calenderView = BACalenderView
// Here we are setting delegate
calenderView.calendarDelegate = self
// here, you can change the theme
calenderView.themeColor = UIColor.brown
// here you can configure your BACalneder
let startDate = Date()
let endDate = Helper.calendarAdvanced(byAdding: .year, value: 10, startDate: Date())
calenderView.configureCalender(
startDate: startDate,
endDate: endDate,
selectedDate: startDate
)
PopupContainer.generatePopupWithView(calenderView).show()
}
GOOD LUCK
JTAppleCalendar (https://github.com/patchthecode/JTAppleCalendar)
BACalendar is released under a MIT License. See LICENSE file for details.