Safari View Controller URL /导航框(文本字段)颜色

an2*_*3lm 3 ios swift sfsafariviewcontroller ios10

前言:

  • 我正在使用SFSafariViewController登录Steam.
  • 我正在尝试定制SFSafariViewController.

到目前为止我得到了什么:

  • 我正在为iOS 10开发应用程序,允许使用preferredControlTintColorpreferredBarTintColor.

在此输入图像描述

您可以注意到URL /导航框(文本字段)几乎是白色的.我想将此颜色更改为相同BarTintColor.

可选的

  • SFSafariViewController提出,有几个毫秒加载URL之前,在此期间,背景色为白色.我还想将其改为更深的颜色.

Ano*_*wat 5

作为Per Apple在SFSafariViewController上的文档,无法更改URL /导航框(文本字段)颜色.Apple建议您使用WKWebView,如果您需要自定义浏览器界面(我也使用相同).