【发布时间】:2020-12-26 07:03:35
【问题描述】:
我有一个 SwiftUI View 从 UINavigationController 内的场景委托实例化
我想从 SwiftUI View
UIViewController
我的场景代表展示了我的View 是如何被实例化的:
let vc = UIHostingController(rootView:SwiftUIView())
let navigationControll = UINavigationController(rootViewController: vc)
self.window?.rootViewController = navigationControll
// Present window to screen
self.window?.makeKeyAndVisible()
我怎样才能做到这一点?
【问题讨论】:
标签: ios swift uinavigationcontroller swiftui