---
title: default()
framework: webkit
role: symbol
role_heading: Type Method
path: webkit/wkwebsitedatastore/default()
---

# default()

Returns the default data store, which stores data persistently to disk.

## Declaration

```swift
class func `default`() -> WKWebsiteDataStore
```

## Return Value

Return Value The default data store for websites.

## Discussion

Discussion A web view configured with the default data store saves website data persistenly to disk. Use this data store to retain the state of web content between browsing sessions.

## See Also

### Creating a data store object

- [nonPersistent()](webkit/wkwebsitedatastore/nonpersistent().md)
- [init(forIdentifier:)](webkit/wkwebsitedatastore/init(foridentifier:).md)
