Case studies — macOS APP

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.

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.

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.

What it runs on.

Language Swift

macOS UI / menu bar AppKit

GPU render pipeline Metal

Screen overlay CAMetalLayer

Borderless click-through NSWindow

Blend mode compositing Core Animation

On the bench.

  • Swift
  • AppKit
  • Metal
  • CAMetalLayer
  • NSWindow
  • Core Animation