Hi, I learned swift only a few weeks ago, and im trying to make a TabView in Xcode. But, it shows only one item! I've already made this work in other apps, but I can't get it working here!
import SwiftUI
struct tabs: View {
var body: some View {
TabView {
ContentView()
.tabItem {
Image(systemName: "house.circle.fill")
Text("Home")
Settngs()
.tabItem {
Image(systemName:"gear.circle.fill")
Text("Settings")
}
}
}
}
}
#Preview {
tabs()
}
and also, I checked "settngs()" and its my name