SwiftUI와 Glassmorphism으로 macOS 메뉴 바 위젯을 만드는 방법을 소개합니다.
저자는 SysMonitor라는 macOS 메뉴 바 애플리케이션을 오픈 소스로 개발했습니다. 이 앱은 CPU, RAM, 디스크 I/O, 네트워크 속도를 추적할 수 있도록 설계되었습니다. 사용자가 원하는 경우에만 깨끗한 메뉴 바 출력이 내려오는 투명한 위젯을 제공하며, 이를 Swift와 SwiftUI를 이용하여 구현했습니다. NSPopover 대신 커스텀 NSWindow를 사용하여 디자인적 제약을 극복했습니다.
Learn how to build a macOS menu bar widget with SwiftUI and Glassmorphism.
The author has open-sourced SysMonitor, a macOS menu bar application for tracking CPU, RAM, Disk I/O, and network speeds. The app features a clean menu bar readout that reveals a beautiful translucent widget when needed. It was developed using Swift and SwiftUI, overcoming visual constraints of NSPopover by opting for a custom NSWindow. This approach allows for edge-to-edge transparency and a unique glassmorphism effect.