Object controls
Asked on 2024-07-14
1 search
Controls are a new type of widget introduced in iOS 18, designed to provide quick access to actions from your app. They can be added to various system spaces such as Control Center, the lock screen, and the action button. Controls focus on actions and succinct information, making them ideal for tasks like turning on the flashlight or deep linking into an app.
There are two types of controls:
- Buttons: Perform discrete actions, which can include launching your app.
- Toggles: Change a piece of boolean state, like turning something on or off.
Controls are built using WidgetKit and are similar to interactive widgets, utilizing app intents to perform their actions. They can be customized with symbols, titles, tints, colors, and additional content to fit the system space they are in.
For more detailed information on building and configuring controls, you can refer to the session Extend your app’s controls across the system.
Relevant Sessions
- Extend your app’s controls across the system
- Bring your app’s core features to users with App Intents
- What’s new in SwiftUI
Chapter Markers for "Extend your app’s controls across the system"
- 0: Introduction
- 37: Learn about controls
- 184: Build a control
- 399: Update toggle states
- 745: Make controls configurable
- 880: Add refinements

Extend your app’s controls across the system
Bring your app’s controls to Control Center, the Lock Screen, and beyond. Learn how you can use WidgetKit to extend your app’s controls to the system experience. We’ll cover how you can to build a control, tailor its appearance, and make it configurable.

Dive deep into volumes and immersive spaces
Discover powerful new ways to customize volumes and immersive spaces in visionOS. Learn to fine-tune how volumes resize and respond to people moving around them. Make volumes and immersive spaces interact through the power of coordinate conversions. Find out how to make your app react when people adjust immersion with the Digital Crown, and use a surrounding effect to dynamically customize the passthrough tint in your immersive space experience.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.
