Skip to content

Instantly share code, notes, and snippets.

View StephenDaly's full-sized avatar

Steve Daly StephenDaly

View GitHub Profile
@josejuanqm
josejuanqm / ContentView.swift
Created January 12, 2024 06:59
Transparent background window with SwiftUI on macOS
import SwiftUI
class WindowBackedHelperView: NSView {
var didMoveToWindow: (NSWindow) -> Void
init(didMoveToWindow: @escaping (NSWindow) -> Void) {
self.didMoveToWindow = didMoveToWindow
super.init(frame: .zero)
}