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

How to use it in SwiftUI #93

Open
newbie-swift opened this issue May 12, 2020 · 6 comments
Open

How to use it in SwiftUI #93

newbie-swift opened this issue May 12, 2020 · 6 comments
Milestone

Comments

@newbie-swift
Copy link

I'm new to Swift and SwiftUI but did try using UIViewRepresentable but not getting anywhere. Any support helps :)

P.S. Sorry to use issue to ask a question

@efremidze efremidze added this to the 4.0 milestone Jun 17, 2020
@efremidze
Copy link
Owner

I will try to add SwiftUI support soon! Any help would be appreciated.

@Arman-Morshed
Copy link

@efremidze can you give any update of that issue?

@efremidze
Copy link
Owner

Easiest integration would be to wrap it into a SwiftUI view
https://www.hackingwithswift.com/quick-start/swiftui/how-to-wrap-a-custom-uiview-for-swiftui

@efremidze
Copy link
Owner

Updated MagneticView_SwiftUI to support UIViewRepresentable

@noelportugal
Copy link

do you have an example on how to use it with Swiftui?

@efremidze
Copy link
Owner

It should be pretty straightforward. You can learn more about interoperability by watching this:
https://developer.apple.com/videos/play/wwdc2022/10072/

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

4 participants