-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dashboard view and DashboardViewModel
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Columbia City Christian Church/ViewModels/DashboardViewModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// DashboardViewModel.swift | ||
// Columbia City Christian Church | ||
// | ||
// Created by Brett Chapin on 6/18/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
extension Dashboard { | ||
@Observable | ||
class ViewModel { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Dashboard.swift | ||
// Columbia City Christian Church | ||
// | ||
// Created by Brett Chapin on 6/18/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct Dashboard: View { | ||
var body: some View { | ||
NavigationStack { | ||
Text("Hello World!") | ||
.navigationTitle("Columbia City Christian Church") | ||
.navigationBarTitleDisplayMode(.inline) | ||
.toolbar { | ||
ToolbarItem(placement: .topBarLeading) { | ||
ChurchButton { | ||
// Nothing | ||
} | ||
} | ||
|
||
ToolbarItem(placement: .topBarTrailing) { | ||
CircularImageButton(name: "Test") { | ||
// Nothing | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
Dashboard() | ||
} |