WendyOS Docs
Guides & TutorialsSwift Guides

Camera Feed in Swift

Start a live camera feed app on WendyOS using the Swift camera template

Live Camera Feed with Swift

Use the Wendy camera template when you want a browser-viewable camera stream without wiring the project from scratch. The template includes wendy.json, camera entitlements, a Dockerfile, Swift backend code, and the browser UI.

Prerequisites

  • Wendy CLI installed on your development machine
  • Swift 6.2 or later installed via swiftly
  • A WendyOS device with a USB camera connected

Setting Up Your Project

Initialize the Project

wendy init swift-camera --target wendyos --language swift --template camera-feed --var APP_ID=swift-camera --var PORT=6003 --var SWIFT_VERSION=6.3 --assistant skip --git-init no
cd swift-camera

The generated project is ready to run. After the first run, use the sections below as a code breakdown when you want to understand or customize camera handling, routes, or UI behavior.

Run on WendyOS

wendy run

Wendy will build the app, ask you to select a device if one is not already configured, deploy the container, and print the app URL.

Code Breakdown

Open the app URL from the Wendy run output to view the stream.

On this page