---
title: shouldBePrivate
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextension/windowconfiguration/shouldbeprivate
---

# shouldBePrivate

Indicates whether the window should be private.

## Declaration

```swift
var shouldBePrivate: Bool { get }
```

## Discussion

Discussion note: To ensure proper isolation between private and non-private data, web views associated with private data must use a different WKUserContentController. Likewise, to be identified as a private web view and to ensure that cookies and other website data is not shared, private web views must be configured to use a non-persistent WKWebsiteDataStore.
