Swift bindings for the Chromium Embedded Framework.
Xcode 8, Swift 2.3/3.0 (see notes below)
tools: cmake, jq, p7zip
Supported target platforms: macOS 10.10+
You can now build CEF.swift using Carthage. Just add the following line to your Cartfile
:
github "lvsti/CEF.swift" "<branch_specifier>"
(For the branch_specifier
, see the notes on branches below.)
Note that the bootstrap build will take quite some time as CEF.swift has to fetch and build external dependencies as well.
- fetch this repo
- switch to the appropriate branch in CEF.swift to match the CEF distribution (see notes below)
- run
scripts/setup.sh
from the repo root - now you are ready to compile the CEF.swift framework
CEF is developed on multiple branches simultaneously, which differ in API and functionality (see cefbuilds.com and Spotify OpenSource). CEF.swift aims at supporting the current stable and dev release branches; supporting dev trunk is out of scope for now, however. For any CEF branch NNNN
, the corresponding CEF.swift branch is named cef_NNNN
.
Currently supported branches:
- 3071 - Swift 3.0
- 3029 - Swift 3.0
- 2987 - Swift 3.0
- 2924 - Swift 3.0
- 2883 - Swift 3.0
- 2840 - Swift 3.0
- 2785 - Swift 3.0
- 2743 - Swift 3.0
- 2704 - Swift 3.0
Archived branches (not maintained anymore):
Check out the (pretty skinny) CEFDemo app under Samples/CEFDemo
to get the basic idea of how a CEF-based app should look like. For more inspiration, take a look at the cefsimple
and cefclient
apps shipped with the CEF binary distribution.
This project is incomplete, untested, and most likely unstable, so use it at your own risk. Bug reports and suggestions are welcome though.