Skip to content
CefSwift
Esc
↑↓navigate↵open⌘Jpreview
On this page

Changelog

What changed in each CefSwift release, from its GitHub release notes.

Every release, with its notes: GitHub releases.

CefSwift 0.3.0

Released 2026-11-29. v0.3.0 on GitHub

  1. Update your Swift package to CefSwift 0.3.0 (.upToNextMinor(from: "0.3.0")).
  2. Rebuild your app bundle. To play system codecs, list the systemMediaDecoders capability so cef bundle embeds the media service. Bundling guide
  3. If you take in-process screenshots of a window (CGWindowListCreateImage), they no longer show windowed pages: Chromium now draws those from its GPU process. Use ScreenCaptureKit on your own window instead.

Still CEF 158.0.6 with Chromium 158.0.8127.89, now on CEF API version 15800.

Behavior changes

  • Chromium’s message loop is the default, in Chrome’s arrangement: -[CefApplication run] runs Chromium’s loop, which runs NSApp.run. .external remains as an opt-out.
  • Windowed pages are presented through Chromium’s remote Core Animation API, as Chrome does. The GPU process uses about half the memory it did.
  • V8’s limit-based memory reducer is on, as in Chrome. List V8Flag_memory_reducer_limit_based in disabledFeatures to undo it.

Measurements against Chrome for Testing are in design notes.

New

  • Start an app: swift package cef new <Name> (or Scripts/new-app.sh) generates a browser, app or minimal package, with --xcode for an Xcode project.
  • Media: AAC, ALAC and Dolby audio, and H.264 and HEVC video, through VideoToolbox in a sandboxed media service. Optional CefProtectedMedia (experimental) plays FairPlay audio for allowlisted origins.
  • Input: page.send(_:) with mouse, keyboard, wheel and gesture events for every kind of page, plus click(at:), typeText(_:), press(_:modifiers:) and scroll(at:by:).
  • DevTools Protocol: typed commands and events (CefDevToolsCommand, CefDevToolsEvent) on page.devTools.
  • Requests: .rewriteResponse(_:) rewrites a response body before the page sees it.
  • Profiles: clearSiteData(for:types:) deletes one site’s data.
  • CefChromium services: zoom levels, search engines, browsing data, passwords, capture devices, protocol handlers, autofill addresses, fonts and languages, and tab lifecycle (CefTabLifecycle).
  • Extensions: finds native messaging hosts installed for Google Chrome and Chromium.
  • Bundling: fetches and embeds only the CEF architectures a build targets; signs framework helpers such as Sparkle’s (see Examples/SparkleUpdates).
  • Everything builds with the Command Line Tools alone; Xcode is optional.

Fixes

  • No white bars along the edges while a window or animation resizes a windowed page.
  • Windowed pages close at once; a closing page no longer crashes lifecycle updates.

Also

Requires macOS 14 or later and Swift 6. The examples require macOS 15 or later.

Full changelog

CefSwift 0.2.1

Released 2026-11-25. v0.2.1 on GitHub

  1. Update your Swift package to CefSwift 0.2.1.
  2. Rebuild your app bundle to include the matching CEF framework and helpers. Bundling guide
  3. Tell users with existing profiles they may need to sign in to sites again.

Existing profiles

Chromium 158 changes the encryption key for custom macOS data directories. Our upgrade test with ad hoc signing lost persistent cookies and kept history and local storage. Other data encrypted with the old key, such as saved passwords, may also be unreadable. Profile upgrade guide

What changed

  • Ships CEF 158.0.6 with Chromium 158.0.8127.89.
  • Sends touch sequences to focused windowed pages through CefPage.sendTouchEvent(_:).
  • Updates Reading Mode, history, and address-bar suggestions for Chromium 158.
  • Preserves the audio mute setting through the first navigation and fixes a macOS quit crash.

Requires macOS 14 or later and Swift 6. The examples require macOS 15 or later.

Full changelog

CefSwift 0.2.0

Released 2026-11-15. v0.2.0 on GitHub

CefSwift 0.2.0 is a rewrite. It is now a general library for embedding Chromium in macOS apps: an app shell whose sections are web pages, a web browser, or any app that shows web content. It uses the official prebuilt CEF 156.0.28 (Chromium 156.0.8078.88).

The Browser example

Requirements

  • macOS 14 or later. Swift 6.1 or later (CI builds with 6.1).
  • Add it with .package(url: "https://github.com/Rajaniraiyn/CefSwift", .upToNextMinor(from: "0.2.0")). Before 1.0 the API can change between minor versions.

Breaking changes

Every public name changed; there is no compatibility layer. Apps on 0.1.0 need porting:

  • The three view types of 0.1.0 are replaced by one observable CefPage, shown by CefWebView in SwiftUI, by CefWindowedPageView or CefOffscreenPageView in AppKit, or by a Chrome-style CefWindow.
  • CCefAppKit and cef-helper are gone. The helper is built and bundled for you.
  • Apps are bundled with swift package cef bundle or the Xcode Run Script phase, which both run the cefswift tool.

The guide and the examples show the new API.

Modules

Module What it is
CefKit The core: runtime, pages, profiles, delegates, AppKit page views, CefWindow, offscreen rendering, discarding
CefSwiftUI SwiftUI on top of CefKit: CefSwiftApp, CefWebView, toolbar and overlay modifiers
CefChromium (optional) Chromium’s own features: bookmarks, history, autocomplete, extensions, Chromium’s tabbed windows (CefChromeWindow, CefTabs), and its bubbles and dialogs
CefPasskeys (optional) WebAuthn requests answered by the app from its own store
cefswift, swift package cef … Download CEF, then assemble, sign, check, package and notarize the app

What’s new

  • Hosting: windowed and offscreen page views in AppKit and SwiftUI, and Chrome-style windows. Pages keep drawing under SwiftUI animations and layer transforms. The page canvas is white by default, with transparency opt-in.
  • Pages: a typed JavaScript-to-Swift bridge and user scripts run as native V8 functions, with no DevTools session. Also: navigation decisions that know the frame, JavaScript per frame, the frame tree, awaitable loads, PDF, find, and the DevTools protocol.
  • Profiles: persistent profiles are real Chromium profiles on disk, and incognito profiles are available. A profile owns the request filter, scheme handlers, user scripts, bridges, permissions and download destination, and a page can override each. Profiles also carry cookies, typed preferences and site settings. URLRequests go through Chromium’s network stack.
  • Decisions: permissions, sign-in, client certificates, JavaScript dialogs, file choosers and unresponsive pages are async delegate methods, each with a localized built-in sheet you can replace.
  • Downloads and context menus: a download policy, a replaceable save panel and observable downloads. Context menus are values you edit, with typed commands, shown as an NSMenu in every hosting mode.
  • Resources: discard() and restore(), blocked by audio, form input or beforeunload, as read from Chromium’s page graph. Lifecycle state and a task manager.
  • Tabs (CefChromium): CefTabs mirrors and drives Chromium’s own tab model, so the app can draw its own tab UI. It opens, closes, moves, pins and groups tabs, and moves them between windows. ⌘⇧T reopens closed tabs and windows, and a previous session can be restored after relaunch.
  • Extensions (CefChromium): a store per profile, with Chrome Web Store installs, install by ID (also on first run), bundled and unpacked installs, toolbar actions with popups, new-tab overrides and extension menu items. CefSwift ships no extension of its own.
  • Offscreen: the macOS accessibility tree, IME, drag and drop, native tooltips, and copies of only the changed part of each frame.
  • Bundling: SwiftPM and Xcode share one tool. It includes cef doctor, locale trimming and notarization, and reports App Sandbox as an error.

Examples

Examples/ has a Gallery of 30 single-file demos, a Browser built from removable feature folders with a SwiftUI tab rail over Chromium’s tabs, and the Minimal, Compat, SystemEngine, SelfTest and Xcode samples.

Known limits (CEF 156)

  • A window holds one Chrome-style view, so CefWindow has one tab. Only CefChromeWindow has real tabs and tab groups.
  • CEF restores nothing at startup; CefSwift restores sessions itself.
  • Chromium’s RemoteCoreAnimationAPI feature is off by default. On macOS 27.2 it leaves pages Chromium draws invisible.
  • No proprietary codecs; Widevine L3 only.

Testing

542 unit tests, also under Thread and Address Sanitizer, and 37 example tests. 108 documentation samples compile. SelfTest runs 1356 checks against real Chromium, and 1350 pass. The remaining 6 check documented limits. CI runs all of it on every change.

Full changes: #25 · https://github.com/Rajaniraiyn/CefSwift/compare/v0.1.0...v0.2.0

v0.1.0

Released 2026-06-14. v0.1.0 on GitHub

Full Changelog: https://github.com/Rajaniraiyn/CefSwift/commits/v0.1.0

Was this page helpful?