dotgrid swift
✓ Published0🌍 Public
TTBD
Last edited Feb 13, 2018
Created on Feb 13, 2018
This example shows a native macOS window that loads the dotgrid drawing application as a full-screen web view. The Swift code creates an `NSWindow` and embeds a `WKWebView` configured with JavaScript and developer extras enabled, then navigates to `http://chis.cloud/dotgrid`. It builds a minimal app shell with a File menu for quitting and uses `NSApplicationDelegate` callbacks to manage the window lifecycle. The rendering approach relies entirely on the web content displayed inside the `WKWebView`.
AI-generated descriptiondotgrid swift
what
WKWebview shell for dotgrid macOS app
needs
- Swift 4 compiler
- strip – to make the app even smaller
todo
[ ] remove that annoying beep when keypress
[ ] drag/drop on main window (maybe via JS injected)
[ ] touchbar support (exposed to JS)
[ ] clipboard support (exposed to JS)
[ ] load/save dialogs