---
title: "Building Profiles with new WebKit API"
description: "macOS 14 and iOS 17 add WebKit APIs for creating multiple persistent WKWebsiteDataStore instances, each keyed by a UUID, so apps can build browser-style profiles with separate cookies and website data."
url: "https://swe.quest/articles/building-profiles-with-new-webkit-api-a47cf901a69ec207"
canonical: "https://webkit.org/blog/14423/building-profiles-with-new-webkit-api/"
source: "WebKit"
published: "2023-08-30"
difficulty: "medium"
kind: "How-to"
reading_minutes: 3
tags: ["browsers","mobile","swift","privacy"]
---

# Building Profiles with new WebKit API

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2023-08-30, 3 min read, How-to. Original: [https://webkit.org/blog/14423/building-profiles-with-new-webkit-api/](https://webkit.org/blog/14423/building-profiles-with-new-webkit-api/)

## Summary

macOS 14 and iOS 17 add WebKit APIs for creating multiple persistent WKWebsiteDataStore instances, each keyed by a UUID, so apps can build browser-style profiles with separate cookies and website data. Assign a store to a WKWebView through its configuration, remove it with WKWebsiteDataStore.remove(forIdentifier:), which can fail if the store is in use or the file system errors, and list existing stores via allDataStoreIdentifiers to avoid creating one by accident. App-owned data such as bookmarks, history and per-site settings still has to be separated per profile by the client.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)

## Prerequisites

- WKWebView basics
- Swift async/await ([easy posts on Swift](https://swe.quest/tags/swift.md?difficulty=easy))

## Keywords

WebKit, WKWebsiteDataStore, WKWebView, macOS 14, iOS 17

## Related posts

- [The File System API with Origin Private File System](https://swe.quest/articles/the-file-system-api-with-origin-private-file-system-d365ac14632ecee7.md): WebKit · 2022-02-14 · Medium · 6 min read · Browsers, JavaScript, Frontend
  WebKit now supports the File System Standard's origin private file system, a per-origin sandboxed storage area where web apps can create, read, write, move, enumerate and delete files and directories.
- [Global Privacy Control (GPC) WebKit API](https://swe.quest/articles/global-privacy-control-gpc-webkit-api-320ef8eb92f93e52.md): WebKit · 2026-11-18 · Medium · 1 min read · Privacy, Browsers, Mobile, Swift
  iOS, iPadOS, visionOS and macOS 27 add a WebKit API that lets apps embedding WKWebView or SwiftUI's WebPage opt navigations into Global Privacy Control, the emerging standard for signalling opt-out of data sharing and cross-context targeted advertising (recognized under California's CCPA).
- [News from WWDC23: WebKit Features in Safari 17 beta](https://swe.quest/articles/news-from-wwdc23-webkit-features-in-safari-17-beta-56e2385f10cea4f8.md): WebKit · 2023-06-06 · Medium · 26 min read · Browsers, Frontend, CSS, Video & media
  Safari 17 beta brings 88 web features. Mac users can add any website to the Dock as a web app: cookies are copied over and web push and badging are supported.
- [WebKit Features in Safari 16.0](https://swe.quest/articles/webkit-features-in-safari-16-0-e20c6c1e305e84fe.md): WebKit · 2022-09-12 · Easy · 10 min read · Browsers, CSS, Identity & auth, Accessibility, Developer tools
  Safari 16.0 ships AVIF images on iOS, passkeys built on WebAuthn, CSS Container Queries (size queries and cq\* units), Subgrid, Offset Path animation, overscroll-behavior, Shared Workers, and Web Inspector Extensions, plus a new Flexbox Inspector.
- [News from WWDC24: WebKit in Safari 18 beta](https://swe.quest/articles/news-from-wwdc24-webkit-in-safari-18-beta-f6c733f3db9a46ad.md): WebKit · 2024-06-10 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
