Episode #431

Providing UIKit Views to SwiftUI

5 minutes
Published on March 5, 2020

This video is only available to subscribers. Get access to this video and 585 others.

SwiftUI is really fun and easy to work with, but what if you need to work with a view that already exists? This episode covers the UIViewRepresentable protocol and we use it to provide a UIActivityIndicatorView to SwiftUI. The same approach can be used to wrap your own custom UIViews as well.

This episode uses Xcode 11.4-beta, Swift 5.2.