ViewsHome Views

Home Views

HomeTabView

File: Views/Home/HomeTabView.swift

The main home screen with personalized greeting, loyalty status, and quick actions.

Home Screen

Sections

  1. Welcome Header — “Good morning, {firstName}” with store tagline
  2. Loyalty Status Card — Current tier, star balance, progress to next tier
  3. Quick Actions — Shortcuts to Order, Rewards, Account
  4. Featured Items — Horizontally scrolling featured menu items
  5. Store Info — Address, hours, social links

Data Sources

  • AuthViewModel for user profile and loyalty data
  • MenuViewModel for featured items

LocationPickerSheet

File: Views/Home/LocationPickerSheet.swift

A sheet for selecting the store location (currently single-location, but supports multiple).

  • Displays active locations from the locations table
  • Shows address and contact info
  • Selected location is used when creating orders