Search code examples
iosswiftuikitjtcalendar

How to use JTCalendar in Swift?


I am creating the custom calendar using JTCalendar. I have created it using JTcalendar in Objective-C. Now I want to use same in Swift. I have tried using Briding-Header but still it shows JTCalendar file does not exist error.

Please suggest.


Solution

  • I have just configured JTCalendar in Swift project using bridging.

    1. Download sample code

    2. Drag and drop JTCalendar folder in your project.

    3. Make sure bridging path is

    $(SRCROOT)/$(PROJECT_NAME)/$(SWIFT_MODULE_NAME)-Bridging-Header.h

    1. set up IBOutlet and Delegate, rest of you have to figure out.