AppKit is a core framework of Cocoa, Apple's environment for developing macOS apps, and traces its roots to NeXT's NeXTSTEP operating system. It handles on-screen elements such as windows, menus, buttons and text input, along with keyboard and mouse events.
Developers use it with Swift or Objective-C to build native macOS apps, while UIKit plays the same role for iPhone and iPad apps.