---
title: privateBrowsingEnabled
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpreferences/privatebrowsingenabled
---

# privateBrowsingEnabled

A Boolean that indicates whether or not private browsing is enabled.

## Declaration

```swift
var privateBrowsingEnabled: Bool { get set }
```

## Discussion

Discussion Private browsing prevents the web view from maintaining any history, cache, or AutoFill information for the pages being visited.
