fd5861c48d42fba1189360ce3911cf3f4d2f8ea9
Root cause: the widget was opening the shared local.store with a 2-entity schema (VocabCard, CourseDeck), causing SwiftData to destructively migrate the file and drop the 4 entities the widget didn't know about (Verb, VerbForm, IrregularSpan, TenseGuide). The main app would then re-seed on next launch, and the cycle repeated forever. Fix: move Verb, VerbForm, IrregularSpan, TenseGuide from the app target into SharedModels so both the main app and the widget use the exact same types from the same module. Both now declare all 6 local entities in their ModelContainer, producing identical schema hashes and eliminating the destructive migration. Other changes bundled in this commit (accumulated during debugging): - Split ModelContainer into localContainer + cloudContainer (no more CloudKit + non-CloudKit configs in one container) - Add SharedStore.localStoreURL() helper and a global reference for bypass-environment fetches - One-time store reset mechanism to wipe stale schema metadata from previous broken iterations - Bootstrap/maintenance split so only seeding gates the UI; dedup and cloud repair run in the background - Sync status toast that shows "Syncing" while background maintenance runs (network-aware, auto-dismisses) - Background app refresh task to keep the widget word-of-day fresh - Speaker icon on VerbDetailView for TTS - Grammar notes navigation fix (nested NavigationStack was breaking detail pane on iPhone) - Word-of-day widget swaps front/back when the deck is reversed so the Spanish word always shows in bold - StoreInspector diagnostic helper for raw SQLite table inspection - Add Conjuga scheme explicitly to project.yml so xcodegen doesn't drop it Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Conjuga
A Spanish verb conjugation learning app for iOS. Practice all 20 tenses with spaced repetition, handwriting recognition, and vocabulary courses.
Features
- Conjugation Practice — Flashcards, typing, multiple choice, handwriting, sentence building, and full table modes
- Spaced Repetition — SM-2 algorithm tracks what you know and surfaces what you don't
- 1,750 Verbs — From basic to expert, with irregular form highlighting
- 20 Tenses — Every indicative, subjunctive, conditional, and imperative tense
- Grammar Guide — 20 tense guides with conjugation tables + 20 grammar topic notes (Ser vs Estar, Por vs Para, etc.)
- Vocabulary Courses — Weekly decks with example sentences
- Progress Tracking — Streaks, daily goals, accuracy stats, and achievement badges
- CloudKit Sync — Review progress syncs across devices
- Widgets — Daily progress, word of the day, and weekly stats
- Text-to-Speech — Hear any verb pronounced in Spanish
Architecture
- SwiftUI + SwiftData with a dual-store configuration:
- Local store — Reference data (verbs, forms, guides) seeded from JSON on first launch
- Cloud store — User data (review cards, progress, streaks) synced via CloudKit
- SharedModels package shared between the app and widget extension
Requirements
- iOS 18+
- Xcode 16+
Building
Open Conjuga/Conjuga.xcodeproj in Xcode and run on a simulator or device. Data seeds automatically on first launch.
Description
Languages
Swift
85.4%
Python
12%
HTML
2.4%
Shell
0.2%