Recently I found that besides present ViewController directly, SwiftUI View can also be add to UIKit view as a subview.
For example: [hostingController didMoveToParentViewController:self];
we also need constraints swiftui in UIKit manually: [NSLayoutConstraint activateConstraints: constrants];
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: