how do i make an action in my app show up in the control center/lock screen? new api or it just happens

Generated on 8/2/2024

1 search

To make an action in your app show up in the Control Center or Lock Screen, you need to use the new controls API introduced in iOS 18. This API allows you to create controls, which are a new type of widget that can be placed in system spaces like the Control Center, Lock Screen, and the action button on iPhone 15 Pro.

Here are the steps to create a control:

  1. Define the Control: Use the controls API to specify the type of control (button or toggle), a symbol, and an app intent. Controls can perform discrete actions or toggle a boolean state.
  2. Configure the Control: Customize the control's display name, symbol, and additional content. You can also add a description for when the control is being configured.
  3. Add to System Spaces: Once defined, your control will be available in the new controls gallery, where users can add it to their Control Center, Lock Screen, or action button.

For more detailed guidance, you can refer to the session Extend your app’s controls across the system (17:14).

Relevant Sessions

  1. Extend your app’s controls across the system
  2. Bring your app’s core features to users with App Intents
  3. Platforms State of the Union

These sessions provide comprehensive information on how to leverage the new controls API and integrate your app's actions into various system spaces.