Back to browse
GitHub Repository

Chromium Embedded Framework (CEF) for SwiftUI on macOS. Three hosting modes (Alloy NSView, Chrome runtime window, OSR/Metal IOSurface), automated CEF download + bundling via SwiftPM plugin.

4 starsSwift

CefSwift, a SwiftUI-first wrapper around Chromium Embedded Framework

by rajaniraiyn·Jun 15, 2026·2 points·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

SwiftPM plugin automates CEF's painful macOS setup with three hosting modes.

Strengths
  • SwiftPM command plugin downloads and bundles CEF with all five helper executables automatically.
  • Metal IOSurface offscreen rendering enables custom compositing with native SwiftUI views.
  • Chrome runtime mode supports tabs, extensions, and chrome:// pages out of the box.
Weaknesses
  • macOS-only with no Windows or Linux support for cross-platform teams.
  • CEF is heavy compared to WKWebView for apps not needing full Chromium features.
Target Audience

macOS developers embedding browser content in native apps

Similar To

WebKit · Electron · Tauri

Post Description

Embed real Chromium (CEF) in SwiftUI apps on macOS with a single package. No WKWebView hacks. No manual CEF setup. Just Swift Package Manager.

Similar Projects