How cmetanka1337/app-intents-demo works
This is a SwiftUI task-and-project planner with a primary in-app workflow for browsing Today, projects, and search results, then viewing or editing task details. App Intents extend that workflow to Siri and Shortcuts for finding, creating, completing, postponing, summarizing, and opening planner data, with interactive result snippets. The app’s store abstraction is backed by SwiftData. Source excerpts and the index establish the main UI, persistence, search, entity, and navigation relationships; several intent and feature implementations are unsampled, so those links are shown only where indexed references support them or marked unverified.
Main entry points: Actions Intent actions · ContentView.swift Planner tabs · SwiftDataPlannerStore.swift SwiftData store · SearchView.swift Search feature
Components 21
Planner UI
- App composition
app-intents-demo/App/AppRootView.swift - Planner tabs
app-intents-demo/ContentView.swift - Today feature
app-intents-demo/Features/Today - Projects feature
app-intents-demo/Features/Projects - Search feature
app-intents-demo/Features/Search/SearchView.swift - Task editing
app-intents-demo/SharedUI/TaskEditorView.swift
Planner Data
- Planner store API
app-intents-demo/Data/PlannerStore.swift - SwiftData store
app-intents-demo/Data/SwiftDataPlannerStore.swift - Task and project models
app-intents-demo/Models - Filters and drafts
app-intents-demo/Domain
App Intents
- Intent actions
app-intents-demo/Intents/Actions - Intent entities
app-intents-demo/Intents/Entities/TaskEntity.swift - Entity queries
app-intents-demo/Intents/Queries - Intent store access
app-intents-demo/Intents/Services/IntentPlannerService.swift - Result snippets
app-intents-demo/Intents/Snippets - Planner shortcuts
app-intents-demo/Intents/Shortcuts/PlannerShortcuts.swift - Spotlight indexing
app-intents-demo/Intents/Services/SpotlightTaskIndexer.swift
Navigation
- Route state
app-intents-demo/Navigation/PlannerRouter.swift - Intent navigation bridge
app-intents-demo/Intents/Services/IntentNavigationBridge.swift
Other components
- Planner user
- Siri and Shortcuts
Connections 25
- Planner user → App composition: uses
- App composition → Planner tabs: hosts
app-intents-demo/App/AppRootView.swift - Planner tabs → Today feature: shows
app-intents-demo/ContentView.swift - Planner tabs → Projects feature: shows
app-intents-demo/ContentView.swift - Planner tabs → Search feature: shows
app-intents-demo/ContentView.swift - Planner tabs → Task editing: routes to
app-intents-demo/ContentView.swift - Search feature → Planner store API: searches
app-intents-demo/Features/Search/SearchView.swift - Search feature → Route state: reads query
app-intents-demo/Features/Search/SearchView.swift - Task editing → Planner store API: edits tasks
app-intents-demo/SharedUI/TaskEditorView.swift - Planner store API → SwiftData store: implemented by
app-intents-demo/App/AppDependencies.swift - SwiftData store → Task and project models: reads and writes
app-intents-demo/Data/SwiftDataPlannerStore.swift - SwiftData store → Filters and drafts: applies filters
app-intents-demo/Data/SwiftDataPlannerStore.swift - Siri and Shortcuts → Intent actions: invokes
app-intents-demo/Intents/Actions/FindTasksIntent.swift - Intent actions → Intent store access: accesses planner
app-intents-demo/Intents/Actions/ShowTodayTasksIntent.swift - Intent actions → Intent entities: returns entities
app-intents-demo/Intents/Actions/FindTasksIntent.swift - Intent entities → Entity queries: queries through
app-intents-demo/Intents/Entities/TaskEntity.swift - Entity queries → Intent store access: uses store access
app-intents-demo/Intents/Queries/TaskQuery.swift - Intent store access → SwiftData store: creates store
app-intents-demo/Intents/Services/IntentPlannerService.swift - Intent actions → Result snippets: presents results
app-intents-demo/Intents/Actions/FindTasksIntent.swift - Result snippets → Intent actions: offers actions
app-intents-demo/Intents/Snippets/FindTasksSnippetView.swift - Siri and Shortcuts → Planner shortcuts: runs shortcuts
- Intent actions → Spotlight indexing: indexes tasks
- Intent actions → Intent navigation bridge: requests navigation
- Intent navigation bridge → Route state: routes in app
app-intents-demo/ContentView.swift - Route state → Planner tabs: selects destination
app-intents-demo/ContentView.swift