Contents

nonPersistent()

Creates a new data store object that stores website data in memory, and doesn’t write that data to disk.

Declaration

class func nonPersistent() -> WKWebsiteDataStore

Return Value

A new data store object that doesn’t save data to disk.

Discussion

Use a nonpersistent data store to implement private browsing in your web view. This method creates a new data store that stores data only in memory, and doesn’t write that data to disk.

See Also

Creating a data store object