Post

Replies

Boosts

Views

Activity

Reply to SwiftUI views do not respond in UIKit UIViewController
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:
Replies
Boosts
Views
Activity
May ’21