macos-notch-ui

Create Dynamic Island-style macOS overlays with borderless NSPanels and SwiftUI shapes.

641|16|Updated May 27, 2026
One-click install
npx skills add https://github.com/fayazara/macos-app-skills --skill macos-notch-ui-fayazara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: macos-notch-ui
Source: https://github.com/fayazara/macos-app-skills/tree/main/notch-ui
Command: npx skills add https://github.com/fayazara/macos-app-skills --skill macos-notch-ui-fayazara

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the challenge of creating native-feeling, Dynamic Island-style UI overlays that interact seamlessly with the MacBook hardware notch, preventing common layout and positioning errors.

Core Features & Use Cases

  • Notch-Aware UI: Provides a custom NotchShape with concave Bezier curves that perfectly match the MacBook hardware notch.
  • System-Level Overlays: Includes an NSPanel-based window architecture that sits at the highest window level (CGShieldingWindowLevel) to ensure content appears above the menu bar.
  • Use Case: Use this to build recording indicators, status alerts, or interactive widgets that appear to emerge directly from the hardware notch area.

Quick Start

Use the macos-notch-ui skill to implement a notch-based recording indicator in my current SwiftUI project.

Frequently Asked Questions about macos-notch-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Dynamic Island-style notch overlay in SwiftUI?

To create a Dynamic Island-style notch overlay in SwiftUI, use borderless NSPanels positioned at the highest window level. This approach pairs custom SwiftUI shapes with precise screen coordinate math to align perfectly with the MacBook hardware notch.

Can I use NSPanel to display an overlay above the macOS menu bar?

Yes, you can use an NSPanel to display an overlay above the macOS menu bar by setting the window level to CGShieldingWindowLevel. This system-level architecture ensures your notch UI content appears above all standard interface elements.

What is the best way to match the physical MacBook notch geometry in an app?

The best way to match the physical MacBook notch geometry is by using a custom NotchShape with concave Bezier curves. This ensures your UI overlay integrates seamlessly with the hardware notch, preventing common layout and positioning errors.

How do I animate a notch UI overlay with spring-based choreography in macOS?

To animate a notch UI overlay with spring-based choreography in macOS, implement spring-based animation choreography within your SwiftUI view structure. This manages smooth state transitions for interactive widgets emerging from the notch area.

Why does my macOS notch UI overlay show positioning errors?

Your macOS notch UI overlay shows positioning errors likely due to incorrect screen coordinate math or insufficient window level management. Solving this requires precise coordinate calculations and using borderless NSPanels for accurate hardware notch alignment.