Embedding a UIView into SwiftUI

  • wrapping a view written in UIKit into a UIViewRepresentable
  • previewing the wrapped UIView in Xcode previews
  • updating the SwiftUI layer from the wrapped UIView
  • dismissing a SwiftUI sheet by tapping a button inside the UIView
You need to purchase the book to read this chapter.Learn more about the bookAlready have a copy? Request access.