Providing UIKit Views to SwiftUI

Episode #431 | 5 minutes | published on March 5, 2020 | Uses Swift-5.2, Xcode-11.4-beta
Subscribers Only
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.
blog comments powered by Disqus