lvsti / CEF.swift

Swift bindings for the Chromium Embedded Framework
BSD 3-Clause "New" or "Revised" License
94 stars 29 forks source link

Swift Helper #57

Closed StarPlayrX closed 2 years ago

StarPlayrX commented 3 years ago

How does USE_SWIFT_HELPER

get invoked? What is the difference with it on or off? Can less helpers be used if Swift Helper is selected?

lvsti commented 3 years ago

How does USE_SWIFT_HELPER get invoked?

To be able to use Swift in the helper processes, set this flag to 1 in CEFDemo Helper's preprocessor macros, then extend App.swift in the SwiftHelper module. If you don't need any extra functionality in the helpers or you are fine with implementing that in C/C++ then feel free to set it to 0.

Can less helpers be used if Swift Helper is selected?

Unfortunately no, this is a constraint of the Chromium architecture: https://groups.google.com/g/cef-announce/c/YK6CTvGNhlY?pli=1