Last active
March 19, 2022 19:50
-
-
Save GerardPaligot/145ade3611d13c42005ef2c36b0ffc72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AppView.swift - Declare the tabs navigation. | |
TabView { | |
AgendaVM(agendaRepository: agendaRepository) | |
.tabItem { | |
Label("Agenda", systemImage: "calendar") | |
} | |
NetworkingVM(userRepository: userRepository) | |
.tabItem { | |
Label("Networking", systemImage: "person.2") | |
} | |
EventVM(agendaRepository: agendaRepository) | |
.tabItem { | |
Label("Event", systemImage: "ticket") | |
} | |
} | |
// Agenda.swift - Declare my toolbar inside my screen. | |
NavigationView { | |
Group { | |
// You screen here | |
} | |
// Toolbar navigation calls inside a NavigationView | |
.navigationTitle(Text("Agenda")) | |
.navigationBarTitleDisplayMode(.inline) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment