Created
January 10, 2021 01:25
-
-
Save IhwanID/4fa17388dd3cd30625ac5094bc9b6b6b to your computer and use it in GitHub Desktop.
Create Tab Bar in 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