Skip to content
arorashivoyPublic

About

iOS for making list and reminder

Topics

Resources

Stars

16 stars

Watchers

1 watching

Forks

Latest commit

 

History

71 Commits

Folders and files

Repository files navigation

StrikeOut

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.

The part worth reading

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:

  1. AlarmImport.swift — a SwiftUI fileImporter declares the audio UTTypes it will accept (UniformTypeIdentifiers), and the picked file is copied out of its security-scoped location into the app's own sounds library.
  2. AlarmTrim.swift — the copy is run through an AVAssetExportSession with a CMTimeRange of 0 to min(30, length) seconds, using AVAssetExportPresetPassthrough so the audio is cut without re-encoding.
  3. 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.

Architecture

  • SwiftUI + Combine throughout; ModelData is the observable store and CheckListDTO handles persistence.
  • UserNotifications for scheduling, with NotificationPermission.swift wrapping the authorisation flow.
  • AVFoundation for playback and the trimming above; AudioPlayer.swift previews a tone before you pick it.
  • Lottie for the animations.

Building it

Open StrikeOut.xcodeproj in Xcode and run on a device or simulator. Notification sounds only behave correctly on a real device.

Credits

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.

About

iOS for making list and reminder

Topics

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages