generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
232 additions
and
9 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
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,60 @@ | ||
// | ||
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
// DashboardView.swift | ||
// ENGAGEHF | ||
// | ||
// Created by Nick Riedman on 4/3/24. | ||
// | ||
|
||
import SpeziAccount | ||
import SpeziMockWebService | ||
import SwiftUI | ||
|
||
struct HomeTitle: View { | ||
@Binding var presentingAccount: Bool | ||
|
||
var body: some View { | ||
HStack { | ||
titleBar | ||
AccountButton(isPresented: $presentingAccount) | ||
} | ||
} | ||
|
||
private var titleBar: some View { | ||
Text("ENGAGE-HF Home") | ||
.font(.title) | ||
.foregroundColor(.white) | ||
.padding() | ||
.frame(maxWidth: .infinity) | ||
.background(Color("AccentColor")) | ||
} | ||
} | ||
|
||
struct Dashboard: View { | ||
@Binding var presentingAccount: Bool | ||
|
||
var body: some View { | ||
VStack { | ||
// Title | ||
|
||
|
||
// Greeting and Date | ||
|
||
// Notifications | ||
|
||
// To-Do list | ||
|
||
// Latest Vitals | ||
|
||
// Symptom Survey | ||
} | ||
.toolbar { | ||
AccountButton(isPresented: $presentingAccount) | ||
} | ||
} | ||
} |
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,22 @@ | ||
// | ||
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// EducationView.swift | ||
// ENGAGEHF | ||
// | ||
// Created by Nick Riedman on 4/3/24. | ||
// | ||
|
||
import SpeziAccount | ||
import SpeziMockWebService | ||
import SwiftUI | ||
|
||
struct Education: View { | ||
@Binding var presentingAccount: Bool | ||
|
||
var body: some View { | ||
Text("Education Test") | ||
} | ||
} |
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,24 @@ | ||
// | ||
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// | ||
// HeartHealthView.swift | ||
// ENGAGEHF | ||
// | ||
// Created by Nick Riedman on 4/3/24. | ||
// | ||
|
||
import SpeziAccount | ||
import SpeziMockWebService | ||
import SwiftUI | ||
|
||
struct HeartHealth: View { | ||
@Binding var presentingAccount: Bool | ||
|
||
var body: some View { | ||
Text("Heart Health Test") | ||
} | ||
} |
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
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,22 @@ | ||
// | ||
// This source file is part of the ENGAGE-HF project based on the Stanford Spezi Template Application project | ||
// | ||
// SPDX-FileCopyrightText: 2023 Stanford University | ||
// | ||
// MedicationsView.swift | ||
// ENGAGEHF | ||
// | ||
// Created by Nick Riedman on 4/3/24. | ||
// | ||
|
||
import SpeziAccount | ||
import SpeziMockWebService | ||
import SwiftUI | ||
|
||
struct Medications: View { | ||
@Binding var presentingAccount: Bool | ||
|
||
var body: some View { | ||
Text("Medications Test") | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
ENGAGEHF/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
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
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