Library

Project

FloatingHUD

Draggable, expandable SwiftUI HUD overlay

2025Open-SourceSwiftUIHUD
View on GitHub
Theme
Language

Project

FloatingHUD

2025Open-SourceSwiftUIHUD
View on GitHub

Period.

2025.02 - (in progress)

  • Shipped as a Swift Package so the HUD overlay drops into any app
  • Tuned interactive springs and snap margins for draggable cards

Screens

FloatingHUD draggable SwiftUI overlay

Used Tools & Skills

Skills

  • SwiftUI layout & matchedGeometryEffect
  • Interactive springs and gesture handling
  • Swift Package modularization

Motivation

Wanted a reusable floating HUD for metrics/debug overlays that stays lightweight while keeping compact and expanded states in sync. Existing HUDs were tied to specific apps or UIKit; I needed a pure SwiftUI overlay with snap-to-edge logic and customizable cards.

Learned

  • Matched geometry/state sharing between compact and expanded SwiftUI views
  • Spring tuning for drag/attachment plus dramatic collapse interactions
  • Designing override-friendly constants and card styles for consumers
FloatingHUDFloatingHUD
Draggable, expandable SwiftUI HUD overlayDraggable, expandable SwiftUI HUD overlay