viewController
ViewController is a term used in Apple's Cocoa and Cocoa Touch frameworks to describe a controller object that manages a screen of content and mediates between the app’s data model and its user interface. In iOS development, the primary class is UIViewController, while macOS uses NSViewController. A view controller owns a root view and is responsible for loading, configuring, and presenting its subviews.
Core responsibilities include handling the view hierarchy, responding to user input, and coordinating with model objects.
Navigation and presentation are common roles for view controllers. They can be embedded in navigation controllers
Interfaces are typically connected through outlets and actions, enabling UI components to interact with code without