Brevio
Fully offline breathing exercise app with guided sessions, custom patterns, insights and charts, soundscapes and haptics. SwiftUI + SwiftData.
Brevio is a complete native iOS breathing exercise app built in SwiftUI. It ships with ready-made breathing patterns (4-7-8, Box Breathing, Calm, Deep Relax and more), a custom pattern editor, guided sessions with an animated breathing circle, haptic cues, procedurally generated soundscapes, insights with charts and streaks, and a full onboarding flow. The app is 100% offline: no backend, no API keys, no sign-in.
Highlights
- Guided sessions: the circle expands on inhale, holds and contracts on exhale, with pause, resume and end controls and automatic session logging
- Ready-made presets as data: 4-7-8, Box Breathing, Calm, Deep Relax and more, editable in one array
- Custom pattern editor: four sliders (inhale, hold, exhale, rest) with a live timeline preview
- Insights tab: streak, total minutes, completion rate and session history with swipe-to-delete
- Settings: haptics toggle, appearance (System/Light/Dark), soundscapes (None/Drone/Ocean) with procedural audio DSP, volume and transition chimes
- Onboarding flow and splash screen
- One-file re-theming: all colors live in a single Color+Theme.swift file, change three accent lines and the whole app re-skins itself
Technology
- SwiftUI with SwiftData persistence (BreathingPreset, BreathingSession)
- BreathingEngine: a dedicated phase/cycle timer state machine isolated from the views
- SoundManager with audio DSP generators for the Drone and Ocean soundscapes
- HapticManager for phase-transition haptic feedback
- iOS 17+ deployment target, Swift 5, no third-party dependencies
Requirements
- macOS with Xcode 15 or later
- Apple Developer account only for App Store publishing; the simulator is free
- No accounts, keys or external services: the app runs fully offline from the first launch
What You Get
- Full readable SwiftUI source: onboarding, home, session, custom pattern editor, insights, settings, splash
- Ready-to-build Xcode project with app icon and accent color assets
- documentation.html with embedded screenshots: setup, customization, one-file re-theming guide and App Store publishing checklist
- README.md and 10 app screenshots including a before/after re-skin example
Please note: this is a source code template, not a wellness or medical product. Building and customizing it requires basic knowledge of Swift and Xcode. If you have questions, use the contact form on the site, I usually reply within 24 hours.


