# apple/sample-food-truck

SwiftUI sample code from WWDC22

Repository: https://github.com/apple/sample-food-truck
Canonical: https://ross.abutalabs.com/products/sample-food-truck
Homepage: https://developer.apple.com/documentation/swiftui/food_truck_building_a_swiftui_multiplatform_app
Language: Swift
License: MIT
License Family: permissive
Topics: swift, swiftui
Last push: 2023-08-18T13:14:11+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1555, "days_push": 1111, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1853, forks 176 (observed 2026-08-28T04:05:44.544527+00:00)

## What it is
Apple's official SwiftUI sample app from WWDC22 demonstrating a single-codebase multiplatform app for iPhone, iPad, and Mac. It showcases NavigationSplitView, custom Layout, Swift Charts, WeatherKit, Live Activities, widgets, in-app purchases, and passkeys.

## Use cases
- learn how to build a SwiftUI multiplatform app
- see NavigationSplitView usage in a real app
- implement Swift Charts for data trends
- add Live Activities and Dynamic Island to an app
- integrate WeatherKit in Swift
- implement passkey sign-in on Apple platforms
- study a complete SwiftUI sample project structure

## When to choose
- you want canonical Apple-endorsed SwiftUI patterns for multiplatform apps
- you need working examples of Charts, WeatherKit, ActivityKit, or passkeys
- you are learning SwiftUI with a full-featured real-world sample

## When to avoid
- you need a production app or reusable library rather than demo code
- you target platforms outside Apple's ecosystem
- you need a project actively updated for the latest SwiftUI APIs

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: ui-components, charts, data-visualization, auth, developer-tools
- domain: mobile-development, desktop-applications, tutorials, cross-platform
- platform: -
- tags: swiftui, sample-code, wwdc22, multiplatform, navigation, live-activities, weatherkit, passkeys, widgets, ios, macos, swift, mobile, desktop

## Member repositories
- apple/sample-food-truck (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.544527+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:16:50.159952+00:00, confidence not recorded.
  - readme: https://github.com/apple/sample-food-truck (fetched 2026-08-28T04:05:44.544527+00:00, sha 7d4e37bd9b0c)
  - homepage: https://developer.apple.com/documentation/swiftui/food_truck_building_a_swiftui_multiplatform_app (fetched 2026-08-29T10:55:49.349139+00:00, sha 8b4b56f43787)
- Data as of 2026-08-30T08:39:29.467469+00:00.
