Get ready for ugliness and fragility:
extension MyViewController: SFSafariViewControllerDelegate { func safariViewController(_ controller: SFSafariViewController, didCompleteInitialLoad didLoadSuccessfully: Bool) { let f = CGRect(origin: CGPoint(x: 0, y: 20), size: CGSize(width: 90, height: 44)) let uglyView = UIView(frame: f) uglyView.backgroundColor = svc.view.backgroundColor controller.view.addSubview(uglyView) } }
Obviously, the origin needs to be fixed for the iPhone X so that it works more or less.
source share