Skip to main content

NGA

An anchor alarm built around one question: is the boat still within its swing radius? I designed the iPhone and watch interfaces and built the alarm logic.

Swift, SwiftUI, Core Location, MapKit, SwiftData, ActivityKit, WidgetKit, WatchConnectivity

The brief

At anchor, a sailor needs to distinguish normal movement around the anchor from sustained drift, even when GPS accuracy changes.

Show the boat, its permitted swing and the age of the last fix. Keep poor GPS, waiting for a fix and confirmed drift distinct.

An anchor alarm with local session history, a scope calculator, a Lock Screen Live Activity and an Apple Watch companion.

NGA active anchor watch with drift and swing radius
NGA swing arc set on the map
NGA anchor status in a Lock Screen Live Activity

Design and engineering

  • Swift, SwiftUI and MapKit

    Native screens put the boat, anchor and swing zone on the map. Core Location supplies position and accuracy; the interface makes a missing or unreliable fix visible.

  • Drift detection

    The detector accounts for GPS uncertainty at the anchor and the current position. It usually confirms a breach over time, while a sufficiently large breach can trigger an alarm sooner. An active alarm requires acknowledgement.

  • Live Activities and Apple Watch

    ActivityKit and WidgetKit show status and fix age on the Lock Screen. WatchConnectivity sends the phone’s session state to the watch and relays acknowledgement, snooze and stop commands.

  • Local session history

    SwiftData stores anchor sessions and tracks on the device. The scope calculator turns rode length and depth into a starting swing radius; history and GPX export let sailors review a watch.

  • Checking the alarm

    Automated tests cover poor GPS accuracy, the confirmation period, a large breach and an alarm that stays active until acknowledged. They check the decisions behind the alert.

Start a project

Explore NGAWork