Created
January 9, 2021 16:24
-
-
Save IhwanID/0687a9058a893da55f22e4e29d6013bb to your computer and use it in GitHub Desktop.
Tab Bar SwiftUI
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
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