Using UIView and UIViewController in SwiftUI
This is a cross-post from my blog on Advanced Swift Development. 👉Click here to directly open this article.
- How to wrap
UIViewController
andUIView
into a SwiftUI view. - How to pass data between UIKit and SwiftUI.
- Lifecycle of
UIViewControllerRepresentable
andUIViewRepresentable
view.
The reason why I am not posting the full article here is that I don’t want Medium to sell my articles. I am giving all my content for free and that’s how it’s going to stay. As a reader you’ll also get better experience with code highlight and formulae.