richardtop / CalendarKit

📅 Calendar for Apple platforms in Swift
https://www.youtube.com/watch?v=cJ63-_z1qg8
MIT License
2.54k stars 343 forks source link

. #309

Closed jackspa22ow closed 3 years ago

richardtop commented 3 years ago

Hi, please attach a sample project which reproduces the issue.

CK is not stable with storyboards / xibs, I recommend configuring your calendar view controller fully in code.

richardtop commented 3 years ago

Hi, I see few issues with your project:

CalendarKit is instantiated via Storyboard by setting the controller class to one of the ViewControllers in the Storyboard. It's not the recommended approach and it might lead to issues such as this. Please, take a look at the Sample App and the Video Tutorial on how to integrate your project with the CalendarKit properly.

Also, the correct way to customize navigation bar is either by following the official tutorial: Customizing Your App’s Navigation Bar, or by providing a custom UINavigationBar subclass in a custom UINavigationController subclass.

For the best result, I recommend embedding DayViewController into a UINavigationController and customizing it's navigation bar.

gurpreetKobe commented 2 years ago

@richardtop Kindly provide a demo project or tutorial with Storyboard as well so that we can configure it that way. My project requirements are such that I have to use a custom nav bar with a storyboard.