Back to work
Case 07 · macOS App · Utilities · 2024

Bringing the Island
to macOS.

A sleek, floating Dynamic Island-style music widget that displays and controls currently playing music from any app. Powered by native Swift and deep macOS MediaRemote API integration.

Loading scene
Role
macOS Developer
Year
2024
Domain
Desktop Utilities
Platform
macOS 13.0+ (Ventura)
Core stack
Swift · SwiftUI · MediaRemote
Integration
AppleScript · Accessibility APIs
Overview

A native widget acting as a system layer.

Apple's internal architectures for media control are tightly locked inside the Control Center. The challenge was to break those out into an independent, always-on-top, and aesthetically pleasing desktop widget.

The Dynamic Music Island serves as an expandable pill-shaped UI floating elegantly at the top of the monitor. Clicking the island expands it to reveal album art, playback controls, and animated sound waves acting synchronously with the music.

By tapping into the private macOS MediaRemote framework and using @_silgen_name directives, the app captures cross-platform real-time updates—identifying playing tracks on Apple Music, Spotify, and browsers smoothly without heavy polling.

Process

Expanding the Desktop.

01
Private APIs

Hooking into the undocumented MediaRemote framework to get global system media state instantly.

02
Floating Architecture

Configuring the invisible window hierarchy to remain always-on-top while handling drag and click events.

03
UI & Animations

Designing smooth, spring-based SwiftUI animations for the island expansion and sound wave visualizers.

04
AppleScript Fallbacks

Writing fallback control layers using Accessibility APIs and AppleScript to handle non-compliant apps like Spotify.

Capabilities

Under the hood.

MediaRemote Framework

Utilizes private macOS frameworks normally reserved for Control Center to receive instantaneous hardware-level callbacks precisely when tracks or playback states change.

Advanced Window Management

Moves outside the App Sandbox constraints to manipulate system window levels. Users can globally drag the pill to anywhere on their screen.

Fluid SwiftUI Design

Employs modern gradient overlaps, masked shapes, and spring timing curves to exactly mimic the iOS-like spatial fluidity on a rigid desktop environment.

Multi-app Compatibility

Global detection engine listens to everything from Safari WebKit audio players to Apple Music native processes, parsing the payload for track, artist, and artwork metadata.