Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change tintcolor of SFSafariViewController?

Tags:

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

like image 819
Entalpi Avatar asked Aug 10 '15 07:08

Entalpi


1 Answers

Some news from iOS 10: now we have two properties to control the overall looks of the SFSafariViewController

doc

source: link

The only downside is, of course, it's not available for older versions.

if #available(iOS 10.0, *) {     safariVC.preferredBarTintColor = .black     safariVC.preferredControlTintColor = .white } else {     safariVC.view.tintColor = .someColor } 
like image 191
Lucas Eduardo Avatar answered Oct 06 '22 05:10

Lucas Eduardo