Trey t
d12a2d315c
Implement freemium subscription system - iOS UI (Phase 5)
iOS Subscription Features:
- Complete SwiftUI subscription UI components
- SubscriptionCache wrapper for accessing Kotlin state
- SubscriptionHelper wrapper for limit checking
- Upgrade prompt and feature comparison screens
Components Created:
1. SubscriptionCache.swift
- Swift wrapper for Kotlin SubscriptionCache
- ObservableObject for reactive UI updates
- Manages currentSubscription state
2. SubscriptionHelper.swift
- Swift wrapper for Kotlin SubscriptionHelper
- canAddProperty(), canAddTask()
- shouldShowUpgradePromptForContractors/Documents()
3. UpgradeFeatureView.swift
- Full-screen view for restricted features
- Shows when free users navigate to contractors/documents
- Beautiful upgrade prompt with feature icon and description
- "Upgrade to Pro" button
4. UpgradePromptView.swift
- Modal upgrade dialog
- Shows when limits are reached (property/task limits)
- Displays trigger-specific messaging
- Quick feature preview
- Compare plans button
5. FeatureComparisonView.swift
- Free vs Pro tier comparison table
- Loads feature benefits from backend
- Shows all feature differences
- Upgrade button
6. StoreKitManager.swift
- StoreKit 2 integration (placeholder)
- Product loading and purchase methods
- Receipt verification hooks
- Transaction observer
- NOTE: Requires App Store Connect configuration
Usage:
- Use UpgradeFeatureView for contractors/documents screens
- Use UpgradePromptView when limits are reached
- SubscriptionHelper checks limits before actions
Next: Integrate into contractors/documents screens
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 13:35:25 -06:00
..
2025-11-04 09:15:49 -06:00
2025-11-24 13:35:25 -06:00
2025-11-20 23:07:37 -06:00
2025-11-21 22:56:43 -06:00
2025-11-20 23:07:29 -06:00
2025-11-24 13:09:55 -06:00
2025-11-20 23:07:14 -06:00
2025-11-10 11:45:45 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-13 22:22:52 -06:00
2025-11-15 11:18:14 -06:00
2025-11-12 20:29:42 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00