macOS APP · CASE STUDY

1600 nits. No private APIs.

macOS menu-bar app that unlocks full XDR brightness and dims below the OS floor. Swift, Metal, and a CAMetalLayer trick.

System Preferences caps MacBook Pro and Pro Display XDR at 500 nits during normal use. WitzLyte removes the cap — and goes in the other direction too, dimming the screen below the OS floor using a Metal multiply trick. Fully sandboxed, no private APIs, ships outside the Mac App Store.

View on GitHub → Build something like this
WHAT WE BUILT

What the OS won't let you do.

Brightness Unlock
Full 1600-Nit XDR Range

macOS reserves XDR's full brightness for HDR video playback only. WitzLyte bypasses that restriction — placing a CAMetalLayer over a borderless, click-through NSWindow to drive the display at full rated nits on demand.

Sub-Floor Dimming
Multiply Blend Below OS Minimum

To dim below the OS brightness floor, the Metal layer renders a solid black frame and sets blendMode = .multiply. Screen color values are multiplied by a near-zero factor — effective brightness drops far below the 500-nit hardware minimum without touching display registers or private frameworks.

Menu Bar UI
Slider, Toggle, Shortcut

Lives entirely in the menu bar. Brightness slider covers the full 0–1600 nit equivalent range. One-click toggle. Bindable keyboard shortcut for instant access during creative work, color grading, or low-light use.

Sandbox Compatible
No Private APIs. Anywhere.

Every technique is public-framework only: AppKit, Metal, Core Animation. The app runs inside the App Sandbox and can be distributed outside the Mac App Store without entitlement exceptions. The trick is architectural, not privileged.

THE MECHANISM

How the Metal trick works.

STEP 01
BORDERLESS NSWINDOW

A NSWindow is created with .borderless style mask, level = .screenSaver, and ignoresMouseEvents = true — it sits above all content, invisible to interaction.

STEP 02
CAMETALLAYER OVERLAY

A CAMetalLayer fills the window's content view. For brightness boost, it stays transparent. For sub-floor dimming, it renders an opaque black frame each display refresh via a Metal command buffer.

STEP 03
MULTIPLY BLEND

The layer's compositing blend mode is set to kCGBlendModeMultiply. A near-zero alpha on the black frame multiplies all display pixels — effectively lowering luminance far below hardware minimums without write access to display hardware.

STACK

What it runs on.

Swift
Language
AppKit
macOS UI / menu bar
Metal
GPU render pipeline
CAMetalLayer
Screen overlay
NSWindow
Borderless click-through
Core Animation
Blend mode compositing
macOS DEVELOPMENT

Need a macOS app that does
what Apple won't let you configure?

Native Swift, AppKit, Metal. We build the things the OS locks away.

Start the conversation →