Thanks @MobileTen. So I am selecting the seasoned in the sidebar view as follows: import SwiftData struct SidebarView: View { @EnvironmentObject var navigationManager: NavigationStateManager @State private var isShowingSeasonSelection = false var body: some View { VStack { List(selection: $navigationManager.SelectionState) { Label(Home, systemImage: house.fill) .tag(SelectionState.home) Section(Squadra) { Label(Rosa, systemImage: person.2.fill) .tag(SelectionState.rosa) Label(Calendario, systemImage: calendar) .tag(SelectionState.calendarioSquadra) } Section(Campionato) { Label(Calendario, systemImage: calendar) .tag(SelectionState.calendarioCampionato) Label(Classifica, systemImage: list.bullet.rectangle.fill) .tag(SelectionState.classifica) } Section(Allenatore) { Label(Esercizi, systemImage: pencil.and.list.clipboard) .tag(SelectionState.esercizi) } Section(Impostazioni) { Label(Impostazioni, systemImage: gear) .tag(SelectionState.settings) } } .listStyle(.sidebar) Spacer() Button(action:
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: