Skip to content

Instantly share code, notes, and snippets.

@IhwanID
Created January 9, 2021 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IhwanID/0687a9058a893da55f22e4e29d6013bb to your computer and use it in GitHub Desktop.
Save IhwanID/0687a9058a893da55f22e4e29d6013bb to your computer and use it in GitHub Desktop.
Tab Bar SwiftUI
struct ContentView: View {
var body: some View {
TabView {
Text("Home Page")
.tabItem {
Image(systemName: "house.fill")
Text("Homeb")
}
Text("Favorite Page")
.tabItem {
Image(systemName: "heart.fill")
Text("Favorite")
}
Text("Profile Page")
.tabItem {
Image(systemName: "person.fill")
Text("Profile")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment