Ios 按下SFSafariViewController时出现黑色选项卡栏

Ios 按下SFSafariViewController时出现黑色选项卡栏,ios,swift,animation,Ios,Swift,Animation,我使用下面的代码来展示一个SFSafariViewController let url = "https://stackoverflow.com" let safariViewController = SFSafariViewController(url: url) safariViewController.modalPresentationStyle = .fullScreen safariViewController.modalTransitionStyle

我使用下面的代码来展示一个SFSafariViewController

    let url = "https://stackoverflow.com"
    let safariViewController = SFSafariViewController(url: url)
    safariViewController.modalPresentationStyle = .fullScreen
    safariViewController.modalTransitionStyle = .crossDissolve
    self.navigationController?.present(safariViewController, animated: true)
由于某些原因,在演示时,SFSafariViewController中存在故障。有什么想法吗?

我发现了我的问题 我的UINavigationBar样式设置为黑色
UINavigationBar.appearance().barStyle=.black