ViewsRewards Views

Rewards Views

RewardsTabView

File: Views/Rewards/RewardsTabView.swift

The Rewards tab showing loyalty status, available rewards, and transaction history.

Rewards Screen

Sections

  1. Tier Progress Card

    • Current tier name and color
    • Star balance
    • Progress bar to next tier
    • Stars needed for next tier (or “Max tier” for Platinum)
  2. Available Rewards

    • Cards for each reward accessible at the user’s tier
    • Shows: reward name, description, stars required
    • “Redeem” button (enabled if sufficient stars)
    • Tier-gated rewards show lock icon
  3. Transaction History

    • Recent star transactions (last 50)
    • Each shows: type icon, description, amount (+/-), date
    • Types: Earned, Redeemed, Expired, Bonus, Adjustment

Redemption Flow

  1. User taps “Redeem” on a reward
  2. Confirmation dialog appears
  3. RewardsViewModel.redeemReward(rewardId:)
  4. Stars deducted, redemption recorded
  5. Updated balance shown
  6. Success feedback