ProgressiveBlurHeader SwiftUI Skill
Skill by ara.so — Daily 2026 Skills collection.
A drop-in SwiftUI package for sticky headers with progressive (variable-radius) blur — replicating the Apple Music, Photos, and App Store style where content scrolls underneath the header with increasing blur and tint. No clipping, no hard edges.
Installation
Swift Package Manager (Xcode)
File → Add Package Dependencies → paste:
Select branch: main
Package.swift
Then add to your target:
Requirements: iOS 16+, Swift 5.9+
Core API
StickyBlurHeader
The primary component. Takes two ViewBuilder closures: header and content.
Parameters
The tint color adapts automatically to light/dark mode.
Basic Usage
Common Patterns
Navigation-Style Header with Back Button
Subtle Blur (Apple Photos Style)
Strong Blur (App Store Style)
Dynamic Header (Height Changes)
Header height is measured automatically via GeometryReader + PreferenceKey — no manual sizing needed:
Architecture
The component uses a three-layer ZStack:
The blur engine is VariableBlur by nikstar, which uses the same private API Apple uses internally. It is App Store approved.
Critical Rules
❌ Never add an opaque background to the header
❌ Never clip the content hierarchy
✅ Always set a background on the outer container
Troubleshooting
Blur not visible / header looks opaque
- Remove any
.background(...)modifier from your header view - Ensure no parent view adds a background before
StickyBlurHeader
Content disappears under header
- Remove any
.clipped()from the content or its ancestors - Do not wrap content in a
ScrollView—StickyBlurHeaderprovides its own
Header height is wrong
- Do not set explicit heights on the header; let it size naturally
GeometryReadermeasures the header automatically
Tint color looks wrong in dark mode
- The tint adapts automatically; ensure
.background(Color(.systemBackground))is set on the outer view so the adaptive color has a reference
Build error: "No such module 'ProgressiveBlurHeader'"
- Confirm the package is added in Xcode under Package Dependencies
- Clean build folder: Product → Clean Build Folder (⇧⌘K)
- Check the target membership of the package in your app target
iOS version compatibility
- Minimum deployment target must be iOS 16.0 or higher
- Set in Xcode: Target → General → Minimum Deployments
iOS 26 Comparison
iOS 26 adds .safeAreaBar(edge: .top) — a native one-liner for sticky blur bars. Use ProgressiveBlurHeader when you need:
- Custom blur radius
- Adjustable tint intensity
- Extended fade below the header
- iOS 16–25 support


