ios_catalogue1-8 Exercise 2: A Selected Tag That No Longer Exists in Use ========================================================================= Why: selectedTagKey is still "sci-fi", but tagsInUse no longer contains that tag, so no chip is highlighted and model.filtered keeps only items carrying that key: none. Two states disagree (the model says a tag is selected; the chip row has nothing to show for it). Fix, in ListView, reset when the tag leaves the in-use list: .onChange(of: tagsInUse.map(\.key)) { _, keys in if let selected = model.selectedTagKey, !keys.contains(selected) { model.selectedTagKey = nil } } attach it to the VStack next to .navigationTitle. (onChange with two parameters is the iOS 17 form.) Alternative: make the empty-state message name the active filters so the user can see and clear them, e.g. a "Clear filters" button in the "Nothing matches these filters" view calling a model.clearFilters() method. That is better UX in general (the state is visible), and works for the type filter too. A good answer does both.