create MaintTab with home page and my worlds page
This commit is contained in:
1 parent
7407329df2
commit
326baad745
5 files changed
+69
-5
No files matched your search
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// MainTabView.swift
|
||||
//
|
||||
//
|
||||
// Created by Giovanni Josserand on 01/09/2026.
|
||||
//
|
||||
import SwiftUI
|
||||
|
||||
struct MainTabView: View {
|
||||
var body : some View {
|
||||
TabView {
|
||||
NavigationStack {
|
||||
HomeView()
|
||||
}.tabItem {
|
||||
Label("Accueil", systemImage: "house")
|
||||
}
|
||||
|
||||
NavigationStack {
|
||||
WorldListView()
|
||||
}.tabItem {
|
||||
Label("Mes mondes", systemImage: "globe.europe.africa")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,12 +10,8 @@ import SwiftUI
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
Image(systemName: "globe")
|
||||
.imageScale(.large)
|
||||
.foregroundStyle(.tint)
|
||||
Text("Hello, world!")
|
||||
MainTabView()
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// HomeView.swift
|
||||
//
|
||||
//
|
||||
// Created by Giovanni Josserand on 01/09/2026.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct HomeView : View {
|
||||
var body: some View {
|
||||
Text("Home")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// WorldListView.swift
|
||||
//
|
||||
//
|
||||
// Created by Giovanni Josserand on 01/09/2026.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct WorldListView: View {
|
||||
var body: some View {
|
||||
Text("My worlds")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// WorldOverviewView.swift
|
||||
//
|
||||
//
|
||||
// Created by Giovanni Josserand on 01/09/2026.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct WorldOverviewView: View {
|
||||
var body: some View {
|
||||
Text("Ca c'est mon monde")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user