<!--
{
  "availability" : [
    "iOS: 10.0.0 - 26.0.0",
    "iPadOS: 10.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariViewController/preferredBarTintColor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariViewController(py)preferredBarTintColor"
  },
  "title" : "preferredBarTintColor"
}
-->

# preferredBarTintColor

The color to tint the background of the navigation bar and the toolbar.

```
var preferredBarTintColor: UIColor? { get set }
```

## Discussion

This color preference is ignored if the view controller is in Private Browsing mode or displaying an antiphishing warning. After the view controller is presented, changes made are not reflected.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)