---
title: preferredBarTintColor
framework: safariservices
role: symbol
role_heading: Instance Property
path: safariservices/sfsafariviewcontroller/preferredbartintcolor
---

# preferredBarTintColor

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

## Declaration

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

## Discussion

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.

## See Also

### Configuring the View Controller

- [configuration](safariservices/sfsafariviewcontroller/configuration-swift.property.md)
- [dismissButtonStyle](safariservices/sfsafariviewcontroller/dismissbuttonstyle-swift.property.md)
- [SFSafariViewController.DismissButtonStyle](safariservices/sfsafariviewcontroller/dismissbuttonstyle-swift.enum.md)
- [preferredControlTintColor](safariservices/sfsafariviewcontroller/preferredcontroltintcolor.md)
