A showcase of different window background styles and visual effects available in macOS using NSVisualEffectView and NSGlassEffectView. Features dynamic switching between different background materials with optional tint colors.
No private APIs are used.
To test these out, clone this repo and open in Xcode, then run the project. You can switch between different background styles using the dropdown menu in the app.
Most of the code is in BackgroundViewController.swift.
Note
Images are available in light and dark themes, switch the browser/system dark mode to see them.
Liquid Glass is introduced in macOS 26, which is available through NSGlassEffectView.
A regular glass effect that provides a frosted glass effect with a slight background blur and distortion on the edges.
let view = NSGlassEffectView()
view.cornerRadius = 16
view.style = .regularA clear variant of the glass effect that provides a transparent background without any blur.
let view = NSGlassEffectView()
view.cornerRadius = 16
view.style = .clearGlass effect with custom tint color applied.
let view = NSGlassEffectView()
view.cornerRadius = 16
view.style = .regular
view.tintColor = NSColor(tintColor)These styles use NSVisualEffectView with different materials and blending modes to create various background effects.
let view = NSVisualEffectView()
view.material = .hudWindow
view.blendingMode = .behindWindow
view.state = .activelet view = NSVisualEffectView()
view.material = .popover
view.blendingMode = .behindWindow
view.state = .activelet view = NSVisualEffectView()
view.material = .menu
view.blendingMode = .behindWindow
view.state = .activelet view = NSVisualEffectView()
view.material = .underWindowBackground
view.blendingMode = .behindWindow
view.state = .activelet view = NSVisualEffectView()
view.material = .titlebar
view.blendingMode = .behindWindow
view.state = .active- macOS 26.0
- Xcode 26.0 Beta 5