Control fundamental iPhone navigation - returning home, switching apps, and accessing system features.
Home
Return to the home screen:
This is equivalent to pressing the home button or swiping up from the bottom on newer iPhones.
App Switcher
Open the app switcher to see recent apps:
From the app switcher, you can:
- Swipe between recent apps
- Swipe up to close apps
- Tap an app to switch to it
Switching Apps Example
# Open app switcher
phone.app_switcher()
time.sleep(0.5)
# Swipe to see previous app
phone.flick(phone.screen.center, direction="right")
time.sleep(0.3)
# Tap to open the app
phone.tap(phone.screen.center)
Control Center
Open Control Center for quick settings:
Control Center provides access to:
- WiFi, Bluetooth, Airplane mode
- Screen brightness
- Volume controls
- Flashlight, Calculator, Camera
- And more depending on configuration
Control Center Workflow
# Open Control Center
phone.control_center()
time.sleep(0.5)
# Tap a control (e.g., flashlight in bottom left)
phone.tap((phone.width // 4, phone.height * 3 // 4))
Spotlight Search
Open Spotlight for searching:
Spotlight lets you search for:
- Apps
- Contacts
- Messages
- Files
- Web results
Search for an App
# Open Spotlight
phone.spotlight()
time.sleep(0.3)
# Type search query
phone.type_text("Settings")
time.sleep(0.5)
# Tap first result
phone.tap((phone.width // 2, 200))
Siri
Activate Siri:
Siri activation requires Siri to be enabled on the device. Voice commands aren’t directly supported - use this to trigger Siri’s listening mode.
Examples
Clean Return to Home
# Ensure we're on home screen
phone.home()
time.sleep(0.3)
# Go home again to ensure first page
phone.home()
Quick App Switch
# Current app -> App switcher -> Previous app
phone.app_switcher()
time.sleep(0.5)
phone.flick(phone.screen.center, direction="right")
time.sleep(0.3)
phone.tap(phone.screen.center)
Toggle Setting via Control Center
# Toggle Airplane mode
phone.control_center()
time.sleep(0.5)
# Tap Airplane mode icon (top left area)
phone.tap((phone.width // 4, phone.height // 4))
time.sleep(0.3)
# Close Control Center
phone.home()
Next Steps