What is AppKit?
AppKit is Apple’s framework for constructing and managing a graphical, event driven user interface for a macOS app. It has been on the Mac since macOS 10.0. Windows, menus, the pasteboard, drag and drop and screens all come from AppKit.
Why it matters
SwiftUI is newer, but it does not cover every Mac behaviour. When an app needs control over a window’s level or whether it takes keyboard focus, it falls back to AppKit. Most real Mac apps use both.
What NotchStar takes from AppKit
- The notch window, an NSPanel.
- The clipboard, read through NSPasteboard.
- The screen geometry, including the safe area inset that locates the notch.
- Dragging screenshots out of the tray, which uses an AppKit dragging source and not SwiftUI’s drag, so that copy, move and delete behave as they do in Finder.
- Sharing to AirDrop, through the system sharing service.
Limits
AppKit is Mac only. A cross platform app cannot reuse it on other systems, which is one reason a Windows version of NotchStar would be a separate app and not a port.
Related
Read what is a notch app for the user side and the Screenshot Tray for the drag behaviour.