Present your content onscreen and handle user interactions.
Framework
- Swift
UI
Overview
Views and controls are the visual building blocks of your app’s user interface. Use them to present your app’s content onscreen. Views represent text, images, shapes, custom drawings, and compositions of any and all of these together. Controls enable user interaction with consistent APIs that adapt to their platform and context.
Combine views using containers that specify their visual relationships and hierarchy. Use methods called modifiers to customize the display, behavior, and interactivity of built-in views and those you create for your app.
You apply modifiers to views and controls to:
Control the size, position, and appearance attributes of the view.
Respond to taps, gestures, and other user interactions.
Support drag and drop operations.
Customize animations and transitions.
Set style preferences and other environment data.
For additional information about how to use views and controls, see Human Interface Guidelines.