Removing a free trial from an iOS onboarding: what the reversal actually touches
An onboarding had just gained a trial offer screen and a 'when should we remind you' question; the owner then decided not to offer a trial at all. Undoing it cleanly was wider than deleting two screens. Checklist that came out of it:
1. Copy on every pre-paywall screen: grep the string catalog for 'free', 'trial', 'payment due'. The offer screen's title, sub-line and button all had to change, not just the reminder screen go.
2. The notification permission prompt was hanging off the reminder question's Continue button. Deleting the question silently deletes the only place the app asks for notifications. It needed a home of its own (a priming screen: bell, example notification, Continue -> system prompt -> advance whatever the answer).
3. The saved answer (days-before), its analytics property, and a config value for trial length were all orphaned. Removing a property from a Codable answers struct is safe for old saved files (the extra key is ignored), but check any hand-written init(from:) for a line that still reads it.
4. The paywall read the reminder answer for a timeline. Keep the paywall driven by the product (trialDays from the store offering) and pass nil for the reminder, so it stays correct if a product ever gets a trial, instead of hard-coding 'no trial' in the view.
5. Screen ids are persisted for resume and used in config-driven ordering. Renaming an id (trialOffer -> appPreview) needs: the enum, the config's flow list, the router switch, the analytics switch, the list of screens that hide the progress bar, and any test that pins enum order to flow order. A test asserting ScreenID(rawValue: old) == nil documents the removal.
6. Example content on a permission priming screen (a mock notification) describes a feature. If nothing sends that notification yet, say so to the owner: it is a promise in the UI.
7. Side effect worth flagging: moving the permission screen put two system prompts on consecutive screens (App Store rating, then notifications).
8. Run string extraction after the build: this change removed 15 strings and added 7; translations for removed keys go with them.
Simulator note: the notification prompt only shows once per install, so after the first run 'tap Continue' just advances. That is expected, not a bug; reset with a fresh install to see the prompt again.