init
This commit is contained in:
38
jason/Views/TabbarView.swift
Normal file
38
jason/Views/TabbarView.swift
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// TabbarView.swift
|
||||
// jason
|
||||
//
|
||||
// Created by Jason on 2024/1/16.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct TabbarView: View {
|
||||
var body: some View {
|
||||
TabView() {
|
||||
HomeView()
|
||||
.tabItem {
|
||||
Image(systemName: "house")
|
||||
Text("Home")
|
||||
}
|
||||
.tag(1)
|
||||
ExploreView()
|
||||
.tabItem {
|
||||
Image(systemName: "magnifyingglass")
|
||||
Text("Explore")
|
||||
}
|
||||
.tag(2)
|
||||
UserView()
|
||||
.tabItem {
|
||||
Image(systemName: "person")
|
||||
Text("User")
|
||||
}
|
||||
.tag(3)
|
||||
}
|
||||
.background(Color.white)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
TabbarView()
|
||||
}
|
||||
Reference in New Issue
Block a user