An iOS app for reminders, notes and alarms, written in SwiftUI. It was on the App Store and passed 400 downloads before I let the Apple developer subscription lapse, so it is no longer listed.
Two or three App Store screenshots belong here.
Most of this is a list app. The interesting piece is custom notification tones imported from anywhere on the device.
iOS will only play a notification sound that is already sitting in the app's
Library/Sounds directory, and it refuses anything longer than 30 seconds.
So importing an arbitrary song as an alarm tone means doing three things in order:
AlarmImport.swift— a SwiftUIfileImporterdeclares the audioUTTypes it will accept (UniformTypeIdentifiers), and the picked file is copied out of its security-scoped location into the app's own sounds library.AlarmTrim.swift— the copy is run through anAVAssetExportSessionwith aCMTimeRangeof 0 tomin(30, length)seconds, usingAVAssetExportPresetPassthroughso the audio is cut without re-encoding.- The trimmed file's name is stored on the reminder, and
UNNotificationSound(named:)picks it up when the notification fires.
The 30-second cap is not a design choice — it is the platform's limit, and discovering that is most of the work in this feature.
- SwiftUI + Combine throughout;
ModelDatais the observable store andCheckListDTOhandles persistence. UserNotificationsfor scheduling, withNotificationPermission.swiftwrapping the authorisation flow.AVFoundationfor playback and the trimming above;AudioPlayer.swiftpreviews a tone before you pick it.- Lottie for the animations.
Open StrikeOut.xcodeproj in Xcode and run on a device or simulator. Notification
sounds only behave correctly on a real device.
The bundled alarm tones in CheckLists/Resources/AlarmTones/ are from
Mixkit, used under the Mixkit Sound
Effects Free License.
Licensed under the Apache License 2.0 — see LICENSE and NOTICE.