Exercise 2: A Real BrandAccent Color Set Used in TaskListView — Possible Solution ======================================================================================== Steps (in Xcode): 1. In Assets.xcassets, add a new Color Set named BrandAccent. 2. In the Attributes Inspector, change "Appearances" from "None" to "Any, Dark" - this splits the color into two real, distinct slots: "Any Appearance" and "Dark". 3. Set the "Any Appearance" slot to a real light-mode-appropriate color (e.g. a deep green), and the "Dark" slot to a real, distinct dark-mode-appropriate color (e.g. a lighter, more saturated green that reads better against a dark background). // Using it in TaskListView: .navigationTitle("TaskFlow") .toolbarColorScheme(.light, for: .navigationBar) // optional, illustrative only // A more direct, real usage - styling the title text itself: .toolbarBackground(Color("BrandAccent"), for: .navigationBar) // Or, more simply, applied to a visible element within the view: Text("TaskFlow") .font(.largeTitle) .foregroundStyle(Color("BrandAccent")) HOW IT WORKS: Defining BrandAccent as a real Color Set with separate "Any Appearance" and "Dark" values means Color("BrandAccent") is a single, real, named reference that automatically resolves to whichever of the two defined values matches the system's own current real appearance setting - no manual @Environment(\.colorScheme) check or if/else branching is needed anywhere in the view code itself, exactly as the chapter's own established pattern demonstrated. Using Color("BrandAccent") directly in TaskListView (whether applied to a Text view's own foregroundStyle, or to the navigation bar's own background) means the color genuinely adapts on its own the moment the user switches between light and dark mode, or when the system's own appearance setting changes for any other real reason - a single line of usage automatically stays correct as the appearance changes, with zero further code needed. ANSWER: A Color Set named BrandAccent, defined with distinct "Any Appearance" and "Dark" values in the asset catalog, and referenced via Color("BrandAccent") inside TaskListView, correctly adapts the displayed color automatically between light and dark mode with no manual appearance-checking code required anywhere in the view. WHY THIS WORKS AS AN ANSWER ------------------------------ This correctly defines a real, appearance-aware Color Set and applies it in the view using the chapter's own established Color("...") usage pattern, demonstrating the automatic light/dark resolution directly.