WKWebView) — the same engine that powers Safari. No additional runtime installation is needed; WebKit is part of the operating system. macOS 10.15 Catalina or later is required.
Supported architectures
Universal binaries (fat binaries targeting both slices) can be produced during the build step. See the Building Executables guide for details.
Threading requirement
macOS-specific creation options
Pass these fields inBrowserWindowOptions when calling app.createBrowserWindow(). They are silently ignored on other platforms.
macOS runtime methods
Simple fullscreen (pre-Lion style)
macOS introduced a slide-in fullscreen mode in Lion (10.7). The older “simple” fullscreen expands the window to fill the screen without a separate Space:win.setFullscreen(FullscreenType.Borderless) for the modern macOS fullscreen Space instead.
Window shadow
Native window tabs
macOS can merge multiple windows of the same app into a tab bar when they share a tabbing identifier:Document edited state
Set the document-edited flag to display the standard macOS dot in the close button, signalling unsaved changes:Menu bar
On macOS the menu bar is a single, application-level bar that spans the top of the screen — it belongs to the app, not to any individual window. Set it viaapp.setMenu():
app.setMenu() returns.