Initial commit, first views

This commit is contained in:
2023-01-12 23:07:37 +01:00
parent 830cb8785a
commit f87c712e41
19 changed files with 319 additions and 78 deletions
+41
View File
@@ -0,0 +1,41 @@
//
// ContentView.swift
// Firebonk
//
// Created by Patrick Müller on 12.01.23.
//
import SwiftUI
struct ContentView: View {
var body: some View {
TabView {
Dashboard()
// Badge can show e.g. number of notifications or new posts
//.badge(2)
.tabItem {
Label("dashboard".localized(tableName: "General"), systemImage: "house.fill")
}
People()
.tabItem {
Label("people".localized(tableName: "General"), systemImage: "person.3.fill")
}
Spaces()
.tabItem {
Label("spaces".localized(tableName: "General"), systemImage: "circle.circle")
}
Profile()
.tabItem{
Label("profile".localized(tableName: "General"), systemImage: "person")
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.preferredColorScheme(.dark)
}
}
+17
View File
@@ -0,0 +1,17 @@
//
// FirebonkApp.swift
// Firebonk
//
// Created by Patrick Müller on 12.01.23.
//
import SwiftUI
@main
struct FirebonkApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}