Я показываю UIViewController через представление SwiftUI, например:
@available(iOS 13, *)
struct WelcomeNavView: UIViewControllerRepresentable {
func makeUIViewController(context: UIViewControllerRepresentableContext<WelcomeNavView>) -> UINavigationController {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let navVc = storyboard.instantiateViewController(withIdentifier: "welcomeNav") as! UINavigationController
return navVc
}
func updateUIViewController(_ uiViewController: UINavigationController, context: UIViewControllerRepresentableContext<WelcomeNavView>) {
}
}
Затем я представляю его из ViewController следующим образом:
self.viewController?.present(style: .fullScreen) {
WelcomeNavView()
}
Однако он не занимает весь экран и цвет UIHostViewController отображаются сверху и снизу:

Как изменить цвет представления UIHostingViewController .. Или разверните Вид, который он держит, чтобы занять весь экран?