Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.45 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.45 KB

BACalendar

BACalendar is a customizable calendar for ios.

Compatibility

BACalendar requires iOS 10+ and is compatible with Swift 4.2 projects.

Installation

pod 'BACalendar'

or

you can download the source code and integrate to your code.

Usage

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

Credits and Inspiration

JTAppleCalendar (https://github.com/patchthecode/JTAppleCalendar)

Authors

Betto Akkara

License

BACalendar is released under a MIT License. See LICENSE file for details.