Skip to content

Instantly share code, notes, and snippets.

@nparsons08

nparsons08/ContentView.swift Secret

Created May 4, 2020
Embed
What would you like to do?
// ios/TheStream/ContentView.swift:11
@ViewBuilder
var body: some View {
if account.isAuthed {
NavigationView {
TabView {
TimelineView()
.tabItem {
Image(systemName: "list.dash")
Text("Timeline")
}
ProfileView()
.tabItem {
Image(systemName: "person.fill")
Text("Profile")
}
PeopleView()
.tabItem {
Image(systemName: "person.2.fill")
Text("People")
}
}
.navigationBarTitle("TheStream", displayMode: .inline)
}
} else {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.