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:

  1. Buttons: Perform discrete actions, which can include launching your app.
  2. 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

  1. Extend your app’s controls across the system
  2. Bring your app’s core features to users with App Intents
  3. 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