Type Safely

Type Safely

Passing Data From SwiftUI To a UIKit View Controller

Daily Coding Tip 042

Type Safely's avatar
Type Safely
Feb 04, 2021
∙ Paid
Image by Radovan Zierik from Pixabay

Most of the time, when we talk about combining UIKit and SwiftUI, we talk about UIViewRepresentable. This gives us the ability to reuse a UIView, which is especially useful when SwiftUI doesn’t include the same controls as UIKit. But it’s possible to use an entire view controller (VC), which means that SwiftUI can act…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture