Skip to content

Repository files navigation

SnapSwitch

SnapSwitch is a small iOS app that launches a Shortcut when opened from the iPhone Camera Control button.

What It Does

  • Opens from Camera Control via a Locked Camera Capture extension.
  • Detects Camera Control launches in the main app.
  • Immediately opens shortcuts://run-shortcut with your configured Shortcut name.
  • If opened normally from the Home Screen, shows a simple UI to edit Shortcut settings.

Requirements

  • iPhone with Camera Control support (for example iPhone 16 lineup).
  • iOS 18.2 or later.
  • Xcode 16.2 or later.

Project Structure

  • SnapSwitch/: Main app and settings UI.
  • SnapSwitchWidgetExtension/: Camera Control widget/control.
  • SnapSwitchCaptureExtension/: Locked Camera Capture extension used for Camera Control launch.
  • Shared/: Shared intent/context/logging code used across targets.

Setup

  1. Open SnapSwitch.xcodeproj in Xcode.
  2. Select your development team for all three targets:
  • SnapSwitch
  • SnapSwitchWidgetExtension
  • SnapSwitchCaptureExtension
  1. Build and run on a physical device.

Configure in App

  1. Launch SnapSwitch normally.
  2. Enter your Shortcut name in the app.
  3. (Optional) Enter Shortcut input text.

Configure Camera Control

  1. On iPhone, open Settings for Camera Control customization.
  2. Select SnapSwitch for the launch action.
  3. Press Camera Control.
  4. SnapSwitch should open and immediately hand off to Shortcuts.

Privacy

  • SnapSwitch stores Shortcut name/input locally in UserDefaults.
  • No backend service is used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages