How urbanapps/armchair works
Armchair is a Swift app-review prompting library for iOS and macOS. An app configures its App Store ID and reports significant user activity; Armchair tracks usage and applies configurable prompt criteria before presenting a review prompt and routing the user toward the store. Its single central implementation also covers lifecycle notifications, localization, affiliate links, and optional cross-device usage storage. The source is one large file, so these are responsibilities within that implementation, not separate modules; unsampled internals limit some relationship detail.
Main entry points: Armchair.swift Review manager · Localization Prompt localization
Components 12
Configuration & tracking
- Armchair API
Source/Armchair.swift - Review manager
Source/Armchair.swift - Usage criteria
Source/Armchair.swift - Usage persistence
Source/Armchair.swift - Prompt localization
Localization
Prompt & review
- Review prompt
Source/Armchair.swift - Review choice
Source/Armchair.swift
Platform integrations
- StoreKit product view
Source/Armchair.swift
Other components
- Integrating app
- App Store
- App lifecycle
- iCloud key-value store
Connections 13
- Integrating app → Armchair API: configures and reports
README.md - Armchair API → Review manager: delegates settings
Source/Armchair.swift - Integrating app → Armchair API: reports events
README.md - Review manager → Usage criteria: checks criteria
Source/Armchair.swift - Review manager → Usage persistence: reads and writes
Source/Armchair.swift - Review manager → Review prompt: presents when eligible
README.md - Review prompt → Review choice: captures choice
Source/Armchair.swift - Review choice → App Store: opens review
Source/Armchair.swift - Review manager → StoreKit product view: loads product
Source/Armchair.swift - StoreKit product view → App Store: loads product listing
Source/Armchair.swift - Review manager → Prompt localization: uses localized strings
README.md - App lifecycle → Review manager: notifies launch and foreground
Source/Armchair.swift - Review manager → iCloud key-value store: may store synced stats
README.md