๐TabView
๐ ๅ่๏ผSwift Playgrounds (About Me)
struct ContentView: View {
var body: some View {
// โญ๏ธ 1. TabView container
TabView {
// โญ๏ธ 2. subview with .tabItem()
HomeView().tabItem {
Label("Home", systemImage: "person")
}
// other tabs ...
}
}
}
Developer โฉ Tutorials โฉ About Me (multiple tab views)
SwiftUI โฉ
View โฉ Auxiliary View Modifiers โฉ tabItem(_:)
Label is used as tab label.
Last updated