Construct and manage a graphical, event-driven user interface for your iOS or tvOS app.


The UIKit framework provides the required infrastructure for your iOS or tvOS apps. It provides the window and view architecture for implementing your interface, the event handling infrastructure for delivering Multi-Touch and other types of input to your app, and the main run loop needed to manage interactions among the user, the system, and your app. Other features offered by the framework include animation support, document support, drawing and printing support, information about the current device, text management and display, search support, accessibility support, app extension support, and resource management.



About App Development with UIKit

Learn about the basic support that UIKit and Xcode provide for your iOS and tvOS apps.

Protecting the User’s Privacy

Secure personal data, and respect user preferences for how data is used.

App Structure

UIKit manages your app's interactions with the system and provides classes for you to manage your app's data and resources.

App and Environment

Manage life-cycle events and your app’s UI scenes, and get information about traits and the environment in which your app runs.

Documents, Data, and Pasteboard

Organize your app's data and share that data on the pasteboard.

Resource Management

Manage the images, strings, storyboards, and nib files that you use to implement your app's interface.

App Extensions

Extend your app's basic functionality to other parts of the system.

Inter-Process Communication

Share data through Handoff, support universal links into your app's content, and display activity-based services to the user.

Mac Catalyst

Create a version of your iPad app that users can run on a Mac device.

User Interface

Views help you display content onscreen and facilitate user interactions; view controllers help you manage views and the structure of your interface.

Views and Controls

Present your content onscreen and define the interactions allowed with that content.

View Controllers

Manage your interface using view controllers and facilitate navigation around your app's content.

View Layout

Use stack views to lay out the views of your interface automatically. Use Auto Layout when you require precise placement of your views.

Appearance Customization

Add Dark Mode support to your app, customize the appearance of bars, and use appearance proxies to modify your UI.

Animation and Haptics

Provide feedback to users using view-based animations and haptics.

Windows and Screens

Provide a container for your view hierarchies and other content.

User Interactions

Responders and gesture recognizers help you handle touches and other events. Drag and drop, focus, peek and pop, and accessibility handle other user interactions.

Touches, Presses, and Gestures

Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.

Drag and Drop

Bring drag and drop to your app by using interaction APIs with your views.

Pointer Interactions

Support pointer interactions in your custom controls and views.

Pencil Interactions

Handle double-tap user interactions on Apple Pencil.

Focus-based Navigation

Navigate the interface of your UIKit app using a remote or a game controller.

Menus and Shortcuts

Simplify interactions with your app using menu systems, contextual menus, Home screen quick actions, and keyboard shortcuts.


Make your apps accessible to everyone, including people with disabilities.

Graphics, Drawing, and Printing

UIKit provides classes and protocols that help you configure your drawing environment and render your content.

Images and PDF

Create and manage images, including those that use bitmap and PDF formats.


Configure your app's drawing environment using colors, renderers, draw paths, strings, and shadows.


Display the system print panels and manage the printing process.


In addition to text views that simplify displaying text in your app, UIKit provides custom text management and rendering that supports the system keyboards.

Text Display and Fonts

Display text, manage fonts, and check spelling.

Text Storage

Manage text storage, and coordinate the layout of text.

Keyboards and Input

Configure the system keyboard, create your own keyboards to handle input, or detect key presses on a physical keyboard.


Avoid using deprecated classes and protocols in your apps.

Deprecated Symbols

Review unsupported symbols and their replacements.


struct UIScrollTypeMask

A bit mask identifying the scroll type of a pan gesture.


class UIPointerRegion

A rectangular region that interacts with pointer movements.

class UIPointerRegionRequest

An object to describe the pointer's location in the interaction's view.