UI overhaul: new color palette, trip creation improvements, crash fix
Theme: - New teal/cyan/mint/pink/gold color palette replacing orange/cream - Added Theme.swift, ViewModifiers.swift, AnimatedComponents.swift Trip Creation: - Removed Drive/Fly toggle (drive-only for now) - Removed Lodging Type picker - Renamed "Number of Stops" to "Number of Cities" with explanation - Added explanation for "Find Other Sports Along Route" - Removed staggered animation from trip options list Bug Fix: - Disabled AI route description generation (Foundation Models crashes in iOS 26.2 Simulator due to NLLanguageRecognizer assertion failure) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -352,6 +352,11 @@ enum GameDAGRouter {
|
||||
/// Scores a path. Higher = better.
|
||||
/// Prefers: more games, less driving, geographic coherence
|
||||
private static func scorePath(_ path: [Game], stadiums: [UUID: Stadium]) -> Double {
|
||||
// Handle empty or single-game paths
|
||||
guard path.count > 1 else {
|
||||
return Double(path.count) * 100.0
|
||||
}
|
||||
|
||||
let gameCount = Double(path.count)
|
||||
|
||||
// Calculate total driving
|
||||
|
||||
Reference in New Issue
Block a user