AppKit
Construct and manage a graphical, event-driven user interface for your macOS app.
Overview
AppKit contains the objects you need to build the user interface for a macOS app. In addition to drawing windows, buttons, panels, and text fields, it handles all the event management and interaction between your app, people, and macOS.
[Image]
Aside from drawing and managing interactions, AppKit handles printing, animating, as well as creating documents with large amounts of data efficiently. The framework also contains built-in support for localization and accessibility to ensure that your app reaches as many people as possible.
AppKit also works with SwiftUI, so you can implement parts of your AppKit app in SwiftUI or mix interface elements between the two frameworks. For example, you can place AppKit views and view controllers inside SwiftUI views, and vice versa.
Topics
Essentials
Adopting Liquid GlassAdopting gesture recognizers in your appAppKit updatesProtecting the User’s PrivacyPorting your macOS apps to Apple silicon
App Structure
User Interface
Views and ControlsView ManagementView LayoutAppearance CustomizationAnimationWindows, Panels, and ScreensSound, Speech, and HapticsSupporting Continuity Camera in Your Mac App
User Interactions
Mouse, Keyboard, and TrackpadMenus, Cursors, and the DockGesturesTouch BarDrag and DropAccessibility for AppKit