TorchPatterns — preview-first iOS torch app

See the pattern before you light it

Adjust strobe, beacon, or SOS. Watch a live on-screen preview. Then start the real torch. Simple. Native. Safe by default.
Clone Repo
iOS torch app with on-screen preview, adjustable strobe, beacon, SOS, and a default 3 Hz safety cap.

Feature grid

  • Preview-first flow: Live blinking on-screen before torch activation.
  • Patterns: Continuous, Strobe (frequency + duty), Beacon, SOS.
  • Safety cap: Default limit at 3 Hz. Toggle override when needed.
  • Brightness control: Real torch level + preview intensity.
  • Full-screen screen strobe: Mirror the pattern without using the torch.
  • Native SwiftUI: Clean, icon-led layout sized for modern 6.1″ iPhones (393 pt width).

How it works

  1. Pick a pattern.
  2. Tune frequency, duty cycle, and brightness.
  3. Watch the preview panel.
  4. Press Start to enable the torch.
  5. Press Stop or background the app to turn it off.

Requirements

  • iOS device with a rear flash.
  • iOS 16 or later.
  • Xcode for sideloading if installing from source.

Accessibility and safety

  • Default flash rate cap at 3 Hz.
  • Clear override toggle for advanced use.
  • Do not point the torch at eyes.
  • Warning shown for photosensitive users.

Notes and limits

  • Torch runs only while the app is active.
  • Simulator has no torch. Use a physical device.

FAQ

Does it run in the background?
No. iOS disables torch control in background and on lock screen.
Can I demo without the torch?
Yes. Use the on-screen preview or full-screen screen strobe.
Why a 3 Hz cap?
To reduce risk for photosensitive users. You can override it.
Which devices are optimized?
The UI targets the 393-pt width class (common 6.1″ iPhones). It adapts to others.