Plan and UsageNew
The subscription section of Settings: the plan and its renewal, usage meters that warn near a limit, and the way up.
Pro block · recorded from Pro
The SwiftUI source comes with SwiftPieces Pro.
Every Pro block installs with one command once your license is signed in, and re-skins with Pro's design system.
Open it in the Pro library ↗Needs a SwiftPieces Pro license: npx swiftpieces login first.
- Type
- PlanUsageBlock
- Inside
- Plan with its status and renewal, Usage meters that warn near a limit, Upgrade with its states, Manage subscription and restore
- Install, with a Pro license
- npx swiftpieces add PlanUsageBlock
- Depends on
- Pro's Design System, which installs with it
Where a subscriber checks their plan. A summary card names the plan with a tinted status chip, its price and when it renews, ends or leaves its trial; usage meters fill to what has been used and turn to warning and danger near a limit. Upgrade works, confirms and folds away on the top plan, and Manage subscription and Restore purchases use StoreKit by default.
Its SwiftUI source comes with SwiftPieces Pro: Plan and Usage in the Pro library.