Contents

WWDC22 Challenge: Learn Switch Control through gaming

Play a card-matching game using Switch Control.

Overview

Configure the sample code project

This project requires an iPhone or iPad, that’s running iOS 16 or iPadOS 16. It doesn’t support running in Simulator.

Configure and enable switch control

You need to enable and configure Switch Control to play this game. Switch Control is an accessibility feature that helps you interact with your device using a variety of software and hardware switches. These can be located on the screen, and can use the camera, sounds, or connected accessories.

First, configure a switch for Switch Control:

  1. Open the Settings app.

  2. Choose Accessibility > Switch Control > Switches.

  3. Select Add New Switch, select a type of switch, then select an action for the switch.

  4. Alternatively, you can choose Bluetooth Devices, select a device to use as a switch, and select an action for that switch.

After you’ve finished setting up your switch, you’re ready to enable Switch Control on your device. If you don’t typically use Switch Control, you can set up an Accessibility Shortcut to quickly enable or disable it for the purposes of this challenge. Here’s how:

  1. Open the Settings app.

  2. Choose Accessibility > Accessibility Shortcut.

  3. Select Switch Control. Make sure this is the only enabled item in the list.

You can now triple-click the Side button or Home button on your device to trigger the Accessibility Shortcut and toggle Switch Control on or off.

See Also

WWDC Challenges