chore: remove scraper, add docs, add marketing-videos gitignore
- Remove Scripts/ directory (scraper no longer needed) - Add themed background documentation to CLAUDE.md - Add .gitignore for marketing-videos to prevent node_modules tracking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
24
CLAUDE.md
24
CLAUDE.md
@@ -137,6 +137,30 @@ TripCreationView → TripCreationViewModel → PlanningRequest
|
||||
- CloudKit container ID: `iCloud.com.sportstime.app`
|
||||
- `PDFGenerator` and `ExportService` are `@MainActor final class` (not actors) because they access MainActor-isolated UI properties and use UIKit drawing
|
||||
|
||||
### Themed Background System
|
||||
|
||||
All views use `.themedBackground()` modifier for consistent backgrounds app-wide.
|
||||
|
||||
**Components** (`Core/Theme/`):
|
||||
- `ThemedBackground` (ViewModifiers.swift) - Conditionally shows static gradient or animated background
|
||||
- `AnimatedSportsBackground` (AnimatedBackground.swift) - Floating sports icons with route lines
|
||||
- `DesignStyleManager.shared.animationsEnabled` - Toggle controlled in Settings
|
||||
|
||||
**How it works:**
|
||||
```swift
|
||||
// All views apply this modifier - animation state is automatic
|
||||
.themedBackground()
|
||||
|
||||
// The modifier checks DesignStyleManager internally:
|
||||
if DesignStyleManager.shared.animationsEnabled {
|
||||
AnimatedSportsBackground() // Floating icons + route lines
|
||||
} else {
|
||||
Theme.backgroundGradient(colorScheme) // Static gradient
|
||||
}
|
||||
```
|
||||
|
||||
**Adding new screens:** Just apply `.themedBackground()` - no need to handle animation logic.
|
||||
|
||||
### iOS 26 API Notes
|
||||
|
||||
**Deprecated APIs** (use with `@available(iOS, deprecated: 26.0)` annotation):
|
||||
|
||||
Reference in New Issue
Block a user