GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wollodev/WorkoutTimer: A minimal interval timer for iOS and Apple Watch, built with SwiftUI.

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Shared
Shared
 
 
WorkoutTimer.xcodeproj
WorkoutTimer.xcodeproj
 
 
WorkoutTimerWatch
WorkoutTimerWatch
 
 
WorkoutTimerWatchTests
WorkoutTimerWatchTests
 
 
WorkoutTimeriOS
WorkoutTimeriOS
 
 
WorkoutTimeriOSTests
WorkoutTimeriOSTests
 
 
screenshots
screenshots
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TRIGGER_TIMING.md
TRIGGER_TIMING.md
 
 
project.yml
project.yml
 
 
run_tests.sh
run_tests.sh
 
 

Repository files navigation

WorkoutTimer

License: MIT Swift 6 Platform

A minimal interval timer for iOS and Apple Watch, built with SwiftUI. Set a duration, tap start, and get notified when each interval completes — with haptics, audio beeps, or a spoken countdown.

iOS

iOS Timer      iOS Settings

watchOS

watchOS Timer      watchOS Picker

Features

  • Dual platform — native apps for iOS and Apple Watch with shared core logic
  • Configurable intervals — 5 to 120 seconds in 5-second steps
  • Continuous cycling — timer automatically restarts after each interval
  • Optional break time — configurable break between rounds (1–100 seconds), disabled by default
  • Feedback options (iOS)
    • Haptic vibration
    • Audio beep
    • Countdown sounds (3, 2, 1, done)
    • Spoken countdown with text-to-speech
  • Background support — keeps running via extended runtime sessions (watchOS) and background audio (iOS)
  • Localized — English and German
  • Zero dependencies — built entirely with Apple frameworks

Requirements

  • Xcode 26+
  • Swift 6
  • iOS 26.0+ / watchOS 10.0+

Getting Started

  1. Clone the repository:

    git clone https://github.com/wollodev/WorkoutTimer.git
    cd WorkoutTimer
  2. Generate the Xcode project (requires XcodeGen):

    xcodegen generate
  3. Open WorkoutTimer.xcodeproj in Xcode

  4. Select the WorkoutTimeriOS or WorkoutTimerWatch scheme and run

Architecture

Shared/                          # Cross-platform code
├── Model/TimerEngine.swift      # Core timer logic with tick/reset cycle
├── Protocols/HapticPlayer.swift # Platform-agnostic haptic interface
└── Views/DurationFormatter.swift

WorkoutTimerWatch/               # watchOS app
├── Model/TimerManager.swift     # Wraps TimerEngine + WKExtendedRuntimeSession
└── Services/                    # Watch haptics, runtime session management

WorkoutTimeriOS/                 # iOS app
├── Model/
│   ├── iOSTimerManager.swift    # Wraps TimerEngine + audio/haptic feedback
│   └── FeedbackSettings.swift   # User preferences (persisted to UserDefaults)
└── Services/                    # Haptics, audio, spoken countdown, background audio

The TimerEngine handles all timing logic and is shared between platforms. Each platform wraps it in a manager that adds platform-specific feedback (WatchKit haptics and extended runtime on watchOS; UIKit haptics, AVFoundation audio, and speech synthesis on iOS).

Running Tests

# iOS tests (TimerEngine + DurationFormatter)
xcodebuild test \
  -scheme WorkoutTimeriOS \
  -destination 'platform=iOS Simulator,name=iPhone 17'

# watchOS tests (TimerManager + session management)
xcodebuild test \
  -scheme WorkoutTimerWatch \
  -destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (46mm)'

Contributing

See CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

A minimal interval timer for iOS and Apple Watch, built with SwiftUI.

Topics

iosswiftswiftuitimerwatchosworkout

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.