Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Passing Data From SwiftUI To a UIKit View Controller

Passing Data From SwiftUI To a UIKit View Controller

Daily Coding Tip 042

Type Safely's avatar
Type Safely
Feb 04, 2021
∙ Paid

Share this post

Type Safely
Type Safely
Passing Data From SwiftUI To a UIKit View Controller
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share