CalendarKit icon indicating copy to clipboard operation
CalendarKit copied to clipboard

SwiftUi support

Open dkikimov opened this issue 5 years ago • 13 comments
trafficstars

Issue Description

Hello! Thank u for amazing job and such a good library. I wanted to ask if you can do a SwiftUi View and write e ReadMe instruction. It's gonna be really cool!

dkikimov avatar Sep 25 '20 14:09 dkikimov

Hi Thanks for the question. SwiftUI support is planned.

richardtop avatar Sep 25 '20 22:09 richardtop

Hello again. I just wanted to ask if there will be such an opportunity soon cause I just need to choose uikit or swiftui

dkikimov avatar Oct 16 '20 17:10 dkikimov

Go with UIKit when working with CalendarKit. You can code the rest of your app in SwiftUI.

richardtop avatar Oct 17 '20 13:10 richardtop

I keep the issue open as the SwiftUI for CalendarKit is still planned to be implemented.

richardtop avatar Oct 18 '20 18:10 richardtop

https://stackoverflow.com/questions/64432749/can-i-use-view-controller-calendarkit-in-swiftui-application

richardtop avatar Oct 20 '20 18:10 richardtop

@richardtop any news about SwiftUI support?

niklasgrewe avatar Aug 08 '21 09:08 niklasgrewe

Hi, please refer to the link I've posted and develop the code to bind CalendarKit with SwiftUI and then wrap it into SwiftUI view. More SwiftUI support is coming soon.

richardtop avatar Aug 08 '21 18:08 richardtop

@richardtop

More SwiftUI support is coming soon.

cool, does that mean, that Calendarkit supports SwiftUI native in future, so i can build multiplatform apps (iOS, macOS) only with SwiftUI and without Catalyst?

niklasgrewe avatar Aug 20 '21 08:08 niklasgrewe

The goal so far is to have iOS & iPadOS support only, but have the component fully controlled by the SwiftUI layer. Having native (i.e. AppKit) mac support would require first implementing that support in the library, before even being able to expose it to the SwiftUI layer.

So the simplest way to support SwiftUI as of right now, is to port it to iOS/iPadOS.

Is there anything you need require AppKit support specifically?

richardtop avatar Aug 22 '21 23:08 richardtop

Any updates on the native SwiftUI support, as opposed to wrapping in a UIKit host?

grosch avatar Jan 19 '22 08:01 grosch

Any updates on the native SwiftUI support, as opposed to wrapping in a UIKit host?

eborras14 avatar Apr 20 '22 21:04 eborras14

Hello, any updates on the native SwiftUI support, as opposed to wrapping in a UIKit host @richardtop ?

Harry-KNIGHT avatar Mar 24 '24 15:03 Harry-KNIGHT

If you're interested, would you be willing to create a wrapper for the CalendarKit and contribute? As for now, the recommended way to integrate CalendarKit into a SwiftUI application is to connect your DataSource & Delegate in the UIKit domain and expose the resulting controller to the SwiftUI as mentioned in the StackOverflow post: https://stackoverflow.com/questions/64432749/can-i-use-view-controller-calendarkit-in-swiftui-application

richardtop avatar Mar 25 '24 21:03 richardtop