Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
0

Building MoonSound: a SwiftUI desk clock with audio, widgets, Live Activities and iCloud sync

DEV Community·MN IN·27 days ago
#JcLchBzd
Reading 0:00
15s threshold

I recently shipped MoonSound, an iOS app that combines a full-screen clock, a white-noise mixer and a Pomodoro timer. The user-facing idea is simple: turn an iPhone or iPad into a calm desk companion. The implementation ended up touching more native iOS APIs than I expected. The app is built with SwiftUI and an MVVM structure. The main screens are intentionally immersive: clock, focus and sounds live in a paging container, while the navigation controls auto-hide so the device can sit on a desk without feeling like an app screen. Some implementation details that were interesting: AVFoundation handles looping sound playback and background audio. Multiple sound tracks can play at once, each with independent volume. Sound categories are loaded with on-demand resources instead of putting everything in the initial app binary. ActivityKit powers the Lock Screen and Dynamic Island focus countdown. WidgetKit provides clock, focus and sound widgets in home-screen and Lock Screen families.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More