---
title: primaryBackgroundStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisplitviewcontroller/primarybackgroundstyle
---

# primaryBackgroundStyle

The background style of the primary view controller.

## Declaration

```swift
var primaryBackgroundStyle: UISplitViewController.BackgroundStyle { get set }
```

## Mentioned in

Optimizing your iPad app for Mac

## Discussion

Discussion In macOS, the sidebar of a split view has Liquid Glass behind its view. To achieve this effect in your iPad app when it runs in macOS, set primaryBackgroundStyle to UISplitViewController.BackgroundStyle.sidebar. Set the style to UISplitViewController.BackgroundStyle.none when you want to control the background appearance of the primary view controller. note: Setting the background style to UISplitViewController.BackgroundStyle.sidebar has no effect when your app is running in iOS or tvOS.

## See Also

### Managing the background style

- [UISplitViewController.BackgroundStyle](uikit/uisplitviewcontroller/backgroundstyle.md)
