Initial commit, first views
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user