WaveformKit 0.8.0: interactive audio waveforms for SwiftUI, now on Apple Watch and Apple TV

Hi all, I'd like to share WaveformKit, a SwiftUI package for audio waveforms you can play, scrub, zoom, mark up and select from. It handles decoding, disk caching, live FFT and rendering, with no external dependencies.

0.8.0 adds watchOS 10 and tvOS 17, so it now builds for iOS, macOS, visionOS, watchOS and tvOS:

  • Apple Watch: the Digital Crown zooms (doubling or halving about the centre), and decoding uses AVAudioFile, since AVAssetReader isn't available there.
  • Apple TV: the waveform is a focusable control; left and right on the Siri Remote seek, and up, down, Play/Pause and Back stay with the system.

Other features: zoom with a multi-resolution summary (real detail at high zoom), markers, region selection, microphone recording, an opt-in Metal backend, right-to-left timelines, and an FFT that doesn't allocate on the audio thread. Swift 6, MIT licensed, 196 tests.

Repo: GitHub - GRimAce11/WaveformKit: Interactive audio waveforms for SwiftUI: play, scrub, zoom, mark up and select. Decoding, caching, live FFT and Metal rendering built in. iOS, macOS, visionOS, watchOS, tvOS. Zero dependencies. · GitHub
Swift Package Index: WaveformKit – Swift Package Index

Feedback on the API, especially the watch and TV interactions, would be very welcome.

3 Likes

Very cool thanks for sharing

1 Like