Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftUi support #270

Open
dkikimov opened this issue Sep 25, 2020 · 13 comments
Open

SwiftUi support #270

dkikimov opened this issue Sep 25, 2020 · 13 comments

Comments

@dkikimov
Copy link
Contributor

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!

@richardtop
Copy link
Owner

Hi Thanks for the question. SwiftUI support is planned.

@dkikimov
Copy link
Contributor Author

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

@richardtop
Copy link
Owner

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

@richardtop
Copy link
Owner

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

@richardtop richardtop reopened this Oct 18, 2020
@niklasgrewe
Copy link

@richardtop any news about SwiftUI support?

@richardtop
Copy link
Owner

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.

@niklasgrewe
Copy link

niklasgrewe commented Aug 20, 2021

@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?

@richardtop
Copy link
Owner

richardtop commented Aug 22, 2021

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?

@grosch
Copy link
Contributor

grosch commented Jan 19, 2022

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

@eborras14
Copy link

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

@Harry-KNIGHT
Copy link

Harry-KNIGHT commented Mar 24, 2024

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

@richardtop
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants