
iOS indie dev 🚀 Building ComingUp in public | Sharing every win, mistake, and lesson along the way.
- Tweets615
- Following342
- Followers415
- Likes515

ALT Swift code from ComingUp. An enum called AppURLScheme with a static constant, current, that reads the AppURLScheme key from the app's Info.plist using Bundle.main.object(forInfoDictionaryKey:), checks it is a non-empty String, and otherwise stops with a precondition failure saying the key is missing from Info.plist.

ALT Swift code from ComingUp's NotificationDelegate. A comment says the tapped event id is held in a published property rather than a fire-and-forget publisher so it survives the cold-start race where the tap arrives before EventView has subscribed. Below it: the class declaration, a shared instance, and @Published var pendingEventID: String?.

ALT Swift code from ComingUp's Recurrance.swift on a dark background. A doc comment says nextOccurrence(of:now:calendar:) always adds whole periods to the original date, so monthly and yearly events keep their day of the month instead of drifting through short months. Below it, the function gets the start of today, counts the elapsed periods, then loops with calendar.date(byAdding: component, value: periodsAhead, to: originalDate) until the occurrence is today or later, and returns nil otherwise.










