Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always giving the error when trying to install by pod #116

Open
devlove1C opened this issue Mar 11, 2020 · 0 comments
Open

Always giving the error when trying to install by pod #116

devlove1C opened this issue Mar 11, 2020 · 0 comments

Comments

@devlove1C
Copy link

devlove1C commented Mar 11, 2020

`

    var today1 = Date()
    var tomorrowComponents = DateComponents()
    tomorrowComponents.day = 1
    let tomorrow = self.calendarView.calendar.date(byAdding: tomorrowComponents, to: today1)!
    self.calendarView.selectDate(tomorrow)

    #if KDCALENDAR_EVENT_MANAGER_ENABLED
    self.calendarView.loadEvents() { error in
        if error != nil {
            let message = "The karmadust calender could not load system events. It is possibly a problem with permissions"
            let alert = UIAlertController(title: "Events Loading Error", message: message, preferredStyle: .alert)
            alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil))
            self.present(alert, animated: true, completion: nil)
        }
    }
    #endif


    self.calendarView.setDisplayDate(today1)`

App crash on this line of code
let tomorrow = self.calendarView.calendar.date(byAdding: tomorrowComponents, to: today1)!

xcode - 11.3.1
iOS - 12, 13 +
Please let me know how to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant