richardtop / CalendarKit

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

SwiftUI update? #330

Closed Pamposgsk closed 2 years ago

Pamposgsk commented 2 years ago

Hi, Do you have a plan to redesign the entire component in SwiftUI? If yes when do you plan to do this? Thanks Pampos

richardtop commented 2 years ago

Hi, the plan so far is to expose the whole component to SwiftUI And, maybe, expose some of the minor components (header, timeline, etc) to SwiftUI too.

What's the purpose of having to rewrite the whole library?

richardtop commented 2 years ago

270 related issue

Pamposgsk commented 2 years ago

Thanks for the quick reply! Iam just asking because Iam new to swift and I believe it’s easier to start the learning with the latest framework instead of combined frameworks. Anyway it would be great if you could share a quick tutorial (Simple project just like the other you created on youtube ) on how to use the current calendar kit inside the new SwiftUI Thanks a lot

richardtop commented 2 years ago

It's possible to just "expose" UIKit-version of the calendar kit to SwiftUI, so that it would work as if it was a fully SwiftUI view, so there is no point in rewriting it in SwiftUI from scratch.