Change tintcolor of SFSafariViewController?

前端 未结 3 911
伪装坚强ぢ
伪装坚强ぢ 2021-02-18 18:01

As the title says; how does one change the overall tint color of the new, in iOS 9, SFSafariViewController?

3条回答
  •  孤城傲影
    2021-02-18 18:45

    There's no need for that.

    Just use CSafariWebKit and set the Color you want in BarTintColor and the TintColor:

    So, you won't need to check if it's available. The frameworks does it for you

    let vc = SafariViewController(url: url, barTintColor: nil, tintColor: nil)
    vc.presentSafari(fromViewController: self, whenDidFinish: nil)
    

提交回复
热议问题