Contents

Adding StandBy and CarPlay support to your widget

Ensure that your small system family widget works well in StandBy and CarPlay.

Overview

People can choose your small system family widgets from the widget gallery in StandBy or CarPlay:

On iPhone in StandBy

The Lock Screen shows two widgets side by side on a dark background. WidgetKit uses your WidgetFamily.systemSmall widget and scales it to fit half of the screen.

In CarPlay

Widgets appear in one or more stacks to the left of the CarPlay Home Screen, in full color and with the background removed.

Because widgets in StandBy appear similar to widgets in CarPlay, when you ensure your widget supports one, it automatically supports the other. To support StandBy and CarPlay appearances, update your small widget:

  • Make the background removable.

  • Focus on showing only glanceable information.

  • Use larger typography, and make it easy to read from a distance.

For more information about making a background removable and optimizing your widget for additional contexts, refer to Update your small widget to support StandBy and CarPlay.

If your widget isn’t a good fit for StandBy or CarPlay, consider marking the applicable context as a disfavored location as described in Indicate that a widget might not fit a specific context. Doing so doesn’t exclude your widget from CarPlay or StandBy, but it communicates to people that these locations aren’t the best fit.

Linking to your app in CarPlay and using buttons or toggles

In CarPlay, the way your widget links to your app depends on the specific context of using your app in a vehicle:

  • If the vehicle supports touch input and your app supports CarPlay integration, tapping the widget opens the app’s CarPlay template, and tapping a button or toggle performs its action.

  • If the vehicle supports touch input but your app doesn’t integrate with CarPlay, people can’t open your app from the widget and the system dims it to indicate that a tap doesn’t have an effect.

  • If the vehicle doesn’t support touch input, people can’t open your app from the widget.

For additional information about linking to your app from your widget, refer to Review linking behavior in CarPlay.

Vehicle features

Buttons and toggles functional

Open the app from a tap

Touchscreen display available

Yes

Yes, requires your app to offer CarPlay integration

Display without touchscreen capabilities

No

No

Additionally, your widget’s buttons and toggles behave differently to match the CarPlay context:

  • If the vehicle supports touch input, people tap a widget’s buttons and toggles to perform their functionality.

  • If the vehicle doesn’t have a touchscreen, widgets and buttons are inactive, and people can’t tap the widget to open your app in CarPlay or on their phone.

Test widgets in CarPlay

To test widgets in CarPlay, preview your widget in Xcode to verify that your widget works in StandBy and the CarPlay Simulator. For more information, refer to Previewing widgets and Live Activities in Xcode and Using the CarPlay Simulator.

See Also

Layout and presentation