WKWebsiteDataRecord
A record of the data that a particular website stores persistently.
Declaration
@MainActor class WKWebsiteDataRecordOverview
Use WKWebsiteDataRecord objects to discover the types of information that a website stores. Records identify the data types a website stores, but don’t identify the actual data. You might use this information to help the user manage website data. For example, Safari provides a way for users to view and remove website data. The domain name of each record contains the website’s domain name and suffix.
You don’t create WKWebsiteDataRecord objects directly. WebKit creates these records and stores them in the web view’s data store. Use the fetchDataRecords(ofTypes:completionHandler:) of that data store to retrieve the current record objects. You also use that object to remove unwanted records.