1

I've encountered this problem both in my own CalendarKit app as well as the sample app found here. The issue is that when I click on an event and enter the EKEventViewController and then navigate back, the calendar now looks like this:BeforeAfter. Looking at the view hierarchy, it looks like the TimelineView has been truncated at the bottom a little. Any idea on what's going on/how to fix? Thanks.

I tried using present instead of pushing navigation controller, but then the "Delete Event" button on the bottom of the EKEventViewController just doesn't show up.

1 Answers1

1

It's a bug in EventKitUI framework projecting itself onto the other ViewControllers. To fix it, add this line to CalendarViewController:

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        navigationController?.setToolbarHidden(true, animated: false)
    }

This will solve your issue.

Richard Topchii
  • 7,075
  • 8
  • 48
  • 115