Using UIHostingConfiguration Without Cell Views
March 30, 2023
UIHostingConfiguration was introduced in WWDC22 and rightly hyped as a great way for UIKit Collection and Table Views to benefit from SwiftUI’s composability and ease of use by embedding directly inside cell views.
However, nothing in content configuration is limited to cell views. We can embed them in any old
UIView by using the main method from
UIContentConfiguration protocol, makeContentView.