Project Brief: Create a apple VisionOS app with 5 tabview Pages
Sample code that I wrote:
(SwiftUI ContentView)
import SwiftUI
struct ContentView: View {
var body: some View {
TabView {
ActionView()
.tabItem {
Label("Action", systemImage: "bolt.fill")
}
ComedyView()
.tabItem {
Label("Comedy", systemImage: "face.smiling.fill")
}
DramaView()
.tabItem {
Label("Drama", systemImage: "theatermasks.fill")
}
HorrorView()
.tabItem {
Label("Horror", systemImage: "moon.stars.fill")
}
SciFiView()
.tabItem {
Label("Sci-Fi", systemImage: "airplane")
}
}
}
}
#Preview {
ContentView()
}