Contents

websiteDataStore

The object you use to get and set the site’s cookies and to track the cached data objects.

Declaration

var websiteDataStore: WKWebsiteDataStore { get set }

Discussion

If you don’t assign a value to this property, the configuration object uses the default data store object to store data persistently. To create a private web-browsing session, create a nonpersistent data store using the nonPersistent() method and assign it to this property. For more information, see WKWebsiteDataStore.

See Also

Configuring the web view’s behavior