Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/customize home #2

Merged
merged 52 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b56db18
Customize Home View
nriedman Apr 3, 2024
e700e46
Simple Home View
nriedman Apr 3, 2024
c5f90b4
REUSE Compliance
nriedman Apr 4, 2024
d215b2f
Testing
nriedman Apr 4, 2024
3828048
Testing
nriedman Apr 4, 2024
a27e59d
UITests
nriedman Apr 4, 2024
27c37c3
Comments
nriedman Apr 4, 2024
6f0fd66
Decomposed Dashboard Greeting into separate file
nriedman Apr 4, 2024
7d6eed7
Update ENGAGEHF/Dashboard/DashboardView.swift
nriedman Apr 4, 2024
9412ed1
Remove cloud function files
nriedman Apr 4, 2024
897c7cb
Clean file headers, and white space
nriedman Apr 4, 2024
17937fd
Update GreetingView.swift
nriedman Apr 4, 2024
ce9d6d9
Update DashboardView.swift
nriedman Apr 4, 2024
87053e1
Merge branch 'enhancement/customize-home' of https://github.com/Stanf…
nriedman Apr 4, 2024
07d3e11
Update Localizable.xcstrings
nriedman Apr 4, 2024
11d0b1f
Remove dead source code and dependencies
nriedman Apr 4, 2024
3639028
Update DashboardView.swift
nriedman Apr 4, 2024
db6cc26
Remove scheduler and mock web service dependency
nriedman Apr 4, 2024
dfecc84
Update ENGAGEHFDelegate.swift
nriedman Apr 4, 2024
cf351d8
Align file names with view names
nriedman Apr 4, 2024
e13e849
Remove MockWebService dependent code
nriedman Apr 4, 2024
364a777
Revert "Remove MockWebService dependent code"
nriedman Apr 4, 2024
c23c574
Revert "Remove scheduler and mock web service dependency"
nriedman Apr 4, 2024
952c2e9
Revert "Remove dead source code and dependencies"
nriedman Apr 4, 2024
c7348a6
Revert "Update ENGAGEHFDelegate.swift"
nriedman Apr 4, 2024
0d50ae0
Recover stable version
nriedman Apr 4, 2024
5f7cefc
Remove filler views and source code
nriedman Apr 4, 2024
966385e
Remove excess accessibility labels
nriedman Apr 4, 2024
af773da
Update Greeting.swift
nriedman Apr 4, 2024
f9b3ec7
Only preview if DEBUG
nriedman Apr 4, 2024
e941f30
Remove stale localizable strings
nriedman Apr 4, 2024
80a3ce7
More stale strings
nriedman Apr 4, 2024
f6a4fbc
Update UI tests
nriedman Apr 4, 2024
d0e0261
Finish UITesting updates
nriedman Apr 4, 2024
f0c3c60
Remove MockWebService dependency & source code
nriedman Apr 4, 2024
e88cd11
Remove SpeziScheduler Dependency
nriedman Apr 4, 2024
ad4decb
Changes brought in from InvitationCode branch?
nriedman Apr 5, 2024
e73623a
Linting
nriedman Apr 5, 2024
12cccf2
Create Package.resolved
nriedman Apr 5, 2024
b607b9a
Linting
nriedman Apr 5, 2024
6b26b32
Revert "Changes brought in from InvitationCode branch?"
nriedman Apr 5, 2024
ac69274
firebase export
nriedman Apr 5, 2024
2bad313
Revert "firebase export"
nriedman Apr 5, 2024
13dcfd3
Create Package.resolved
nriedman Apr 5, 2024
905541a
Update Package.resolved
nriedman Apr 6, 2024
14f0799
Apply suggestions from code review
nriedman Apr 6, 2024
7e5f124
Address review comments
nriedman Apr 6, 2024
179ff76
Merge branch 'enhancement/customize-home' of https://github.com/Stanf…
nriedman Apr 6, 2024
832e8bd
Remove unnecessary preview
nriedman Apr 6, 2024
3923e99
Remove stale localizable strings
nriedman Apr 6, 2024
8a1c723
Remove unnecessary #if DEBUG
nriedman Apr 6, 2024
935a3bf
Update HomeViewUITests.swift
nriedman Apr 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 76 additions & 4 deletions ENGAGEHF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
27FA29902A388E9B009CAC45 /* ModalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27FA298F2A388E9B009CAC45 /* ModalView.swift */; };
2F3D4ABC2A4E7C290068FB2F /* SpeziScheduler in Frameworks */ = {isa = PBXBuildFile; productRef = 2F3D4ABB2A4E7C290068FB2F /* SpeziScheduler */; };
2F49B7762980407C00BCB272 /* Spezi in Frameworks */ = {isa = PBXBuildFile; productRef = 2F49B7752980407B00BCB272 /* Spezi */; };
2F4E237E2989A2FE0013F3D9 /* ENGAGEHFUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E237D2989A2FE0013F3D9 /* ENGAGEHFUITests.swift */; };
2F4E237E2989A2FE0013F3D9 /* LaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E237D2989A2FE0013F3D9 /* LaunchTests.swift */; };
2F4E23832989D51F0013F3D9 /* ENGAGEHFTestingSetup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E23822989D51F0013F3D9 /* ENGAGEHFTestingSetup.swift */; };
2F4FC8D729EE69D300BFFE26 /* MockUpload.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4FC8D629EE69D300BFFE26 /* MockUpload.swift */; };
2F5E32BD297E05EA003432F8 /* ENGAGEHFDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F5E32BC297E05EA003432F8 /* ENGAGEHFDelegate.swift */; };
Expand Down Expand Up @@ -58,6 +58,12 @@
2FE5DCB129EE6107004B9AB4 /* AccountOnboarding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */; };
2FF53D8B2A8725DE00042B76 /* SpeziMockWebService in Frameworks */ = {isa = PBXBuildFile; productRef = 2FF53D8A2A8725DE00042B76 /* SpeziMockWebService */; };
2FF53D8D2A8729D600042B76 /* ENGAGEHFStandard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FF53D8C2A8729D600042B76 /* ENGAGEHFStandard.swift */; };
4DB025B72BBDE903002D2545 /* DashboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB025B62BBDE903002D2545 /* DashboardView.swift */; };
4DB025BD2BBDE9F7002D2545 /* HeartHealthView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB025BC2BBDE9F7002D2545 /* HeartHealthView.swift */; };
4DB025BF2BBDEA03002D2545 /* EducationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB025BE2BBDEA03002D2545 /* EducationView.swift */; };
4DB025C12BBDEA0B002D2545 /* MedicationsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB025C02BBDEA0B002D2545 /* MedicationsView.swift */; };
4DB025C62BBE21EF002D2545 /* index.js in Resources */ = {isa = PBXBuildFile; fileRef = 4DB025C52BBE21EF002D2545 /* index.js */; };
4DB025CA2BBE3A59002D2545 /* HomeViewUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DB025C92BBE3A59002D2545 /* HomeViewUITests.swift */; };
56E708352BB06B7100B08F0A /* SpeziLicense in Frameworks */ = {isa = PBXBuildFile; productRef = 56E708342BB06B7100B08F0A /* SpeziLicense */; };
56E7083B2BB06F6F00B08F0A /* SwiftPackageList in Frameworks */ = {isa = PBXBuildFile; productRef = 56E7083A2BB06F6F00B08F0A /* SwiftPackageList */; };
653A2551283387FE005D4D48 /* ENGAGEHF.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A2550283387FE005D4D48 /* ENGAGEHF.swift */; };
Expand Down Expand Up @@ -92,7 +98,7 @@

/* Begin PBXFileReference section */
27FA298F2A388E9B009CAC45 /* ModalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModalView.swift; sourceTree = "<group>"; };
2F4E237D2989A2FE0013F3D9 /* ENGAGEHFUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ENGAGEHFUITests.swift; sourceTree = "<group>"; };
2F4E237D2989A2FE0013F3D9 /* LaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchTests.swift; sourceTree = "<group>"; };
2F4E23822989D51F0013F3D9 /* ENGAGEHFTestingSetup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ENGAGEHFTestingSetup.swift; sourceTree = "<group>"; };
2F4FC8D629EE69D300BFFE26 /* MockUpload.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockUpload.swift; sourceTree = "<group>"; };
2F5E32BC297E05EA003432F8 /* ENGAGEHFDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ENGAGEHFDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -124,6 +130,12 @@
2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = SocialSupportQuestionnaire.json; sourceTree = "<group>"; };
2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccountOnboarding.swift; sourceTree = "<group>"; };
2FF53D8C2A8729D600042B76 /* ENGAGEHFStandard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ENGAGEHFStandard.swift; sourceTree = "<group>"; };
4DB025B62BBDE903002D2545 /* DashboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardView.swift; sourceTree = "<group>"; };
4DB025BC2BBDE9F7002D2545 /* HeartHealthView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeartHealthView.swift; sourceTree = "<group>"; };
4DB025BE2BBDEA03002D2545 /* EducationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EducationView.swift; sourceTree = "<group>"; };
4DB025C02BBDEA0B002D2545 /* MedicationsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MedicationsView.swift; sourceTree = "<group>"; };
4DB025C52BBE21EF002D2545 /* index.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = index.js; sourceTree = "<group>"; };
4DB025C92BBE3A59002D2545 /* HomeViewUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewUITests.swift; sourceTree = "<group>"; };
653A254D283387FE005D4D48 /* ENGAGEHF.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ENGAGEHF.app; sourceTree = BUILT_PRODUCTS_DIR; };
653A2550283387FE005D4D48 /* ENGAGEHF.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ENGAGEHF.swift; sourceTree = "<group>"; };
653A255428338800005D4D48 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -273,6 +285,53 @@
path = Helper;
sourceTree = "<group>";
};
4DB025B52BBDE8EC002D2545 /* Dashboard */ = {
isa = PBXGroup;
children = (
4DB025B62BBDE903002D2545 /* DashboardView.swift */,
);
path = Dashboard;
sourceTree = "<group>";
};
4DB025B92BBDE9CB002D2545 /* HeartHealth */ = {
isa = PBXGroup;
children = (
4DB025BC2BBDE9F7002D2545 /* HeartHealthView.swift */,
);
path = HeartHealth;
sourceTree = "<group>";
};
4DB025BA2BBDE9DA002D2545 /* Medications */ = {
isa = PBXGroup;
children = (
4DB025C02BBDEA0B002D2545 /* MedicationsView.swift */,
);
path = Medications;
sourceTree = "<group>";
};
4DB025BB2BBDE9E2002D2545 /* Education */ = {
isa = PBXGroup;
children = (
4DB025BE2BBDEA03002D2545 /* EducationView.swift */,
);
path = Education;
sourceTree = "<group>";
};
4DB025C32BBE219B002D2545 /* Functions */ = {
isa = PBXGroup;
children = (
4DB025C52BBE21EF002D2545 /* index.js */,
);
path = Functions;
sourceTree = "<group>";
};
4DB025C72BBE24B9002D2545 /* Firebase */ = {
isa = PBXGroup;
children = (
);
path = Firebase;
sourceTree = "<group>";
};
653A2544283387FE005D4D48 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -303,6 +362,12 @@
2FF53D8C2A8729D600042B76 /* ENGAGEHFStandard.swift */,
2F4E23822989D51F0013F3D9 /* ENGAGEHFTestingSetup.swift */,
2FC975A72978F11A00BA99FE /* Home.swift */,
4DB025C72BBE24B9002D2545 /* Firebase */,
4DB025C32BBE219B002D2545 /* Functions */,
4DB025B52BBDE8EC002D2545 /* Dashboard */,
4DB025B92BBDE9CB002D2545 /* HeartHealth */,
4DB025BB2BBDE9E2002D2545 /* Education */,
4DB025BA2BBDE9DA002D2545 /* Medications */,
A9720E412ABB68B300872D23 /* Account */,
2FE5DC2829EDD398004B9AB4 /* Onboarding */,
2FE5DC3B29EDD7D0004B9AB4 /* Schedule */,
Expand All @@ -327,7 +392,8 @@
653A256A28338800005D4D48 /* ENGAGEHFUITests */ = {
isa = PBXGroup;
children = (
2F4E237D2989A2FE0013F3D9 /* ENGAGEHFUITests.swift */,
2F4E237D2989A2FE0013F3D9 /* LaunchTests.swift */,
4DB025C92BBE3A59002D2545 /* HomeViewUITests.swift */,
);
path = ENGAGEHFUITests;
sourceTree = "<group>";
Expand Down Expand Up @@ -511,6 +577,7 @@
2FC3439129EE6349002D773C /* AppIcon.png in Resources */,
653A255528338800005D4D48 /* Assets.xcassets in Resources */,
2FC3439029EE6346002D773C /* SocialSupportQuestionnaire.json in Resources */,
4DB025C62BBE21EF002D2545 /* index.js in Resources */,
2FA0BFED2ACC977500E0EF83 /* Localizable.xcstrings in Resources */,
2F6025CB29BBE70F0045459E /* GoogleService-Info.plist in Resources */,
);
Expand Down Expand Up @@ -540,16 +607,20 @@
2FE5DC4129EDD7EE004B9AB4 /* StorageKeys.swift in Sources */,
2FE5DCB129EE6107004B9AB4 /* AccountOnboarding.swift in Sources */,
2F4FC8D729EE69D300BFFE26 /* MockUpload.swift in Sources */,
4DB025C12BBDEA0B002D2545 /* MedicationsView.swift in Sources */,
2FE5DC3A29EDD7CA004B9AB4 /* Welcome.swift in Sources */,
2FE5DC3829EDD7CA004B9AB4 /* InterestingModules.swift in Sources */,
4DB025BF2BBDEA03002D2545 /* EducationView.swift in Sources */,
2FE5DC3529EDD7CA004B9AB4 /* Consent.swift in Sources */,
2FE5DC4529EDD7F2004B9AB4 /* Binding+Negate.swift in Sources */,
4DB025B72BBDE903002D2545 /* DashboardView.swift in Sources */,
2FC975A82978F11A00BA99FE /* Home.swift in Sources */,
2FE5DC4E29EDD7FA004B9AB4 /* ScheduleView.swift in Sources */,
A9DFE8A92ABE551400428242 /* AccountButton.swift in Sources */,
2FE5DC3729EDD7CA004B9AB4 /* OnboardingFlow.swift in Sources */,
2FF53D8D2A8729D600042B76 /* ENGAGEHFStandard.swift in Sources */,
2FE5DC4729EDD7F2004B9AB4 /* CodableArray+RawRepresentable.swift in Sources */,
4DB025BD2BBDE9F7002D2545 /* HeartHealthView.swift in Sources */,
A9720E432ABB68CC00872D23 /* AccountSetupHeader.swift in Sources */,
2FE5DC4029EDD7EE004B9AB4 /* FeatureFlags.swift in Sources */,
2FE5DC4629EDD7F2004B9AB4 /* Bundle+Image.swift in Sources */,
Expand Down Expand Up @@ -581,7 +652,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2F4E237E2989A2FE0013F3D9 /* ENGAGEHFUITests.swift in Sources */,
2F4E237E2989A2FE0013F3D9 /* LaunchTests.swift in Sources */,
4DB025CA2BBE3A59002D2545 /* HomeViewUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
75 changes: 75 additions & 0 deletions ENGAGEHF/Dashboard/DashboardView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
//
// 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 Greeting: View {
@State private var dateString: String?

var body: some View {
HStack {
Text("Hello, world!")
.font(.title2)
.accessibilityLabel(Text("DASHBOARD_GREETING"))
Spacer()
Text(dateString ?? "No date")
.font(.title2)
.accessibilityLabel(Text("DASHBOARD_DATE"))
}
.padding()
.task {
getDateString()
}
}

private func getDateString() {
let currentDate = Date()
let dateFormatter = DateFormatter()

dateFormatter.dateStyle = .short

dateString = dateFormatter.string(from: currentDate)
}
}

struct Dashboard: View {
@Binding var presentingAccount: Bool

var body: some View {
NavigationStack {
VStack {
Greeting()
Spacer()
}
.navigationBarTitleDisplayMode(.inline)
.navigationTitle("ENGAGE-HF: Home") // Todo: Make this white

.toolbar {
ToolbarItem(placement: .topBarTrailing) {
AccountButton(isPresented: $presentingAccount)
.foregroundColor(.white)
.accessibilityLabel(Text("DASHBOARD_ACC_BTN"))
}
}
.toolbarBackground(.visible, for: .navigationBar)
.toolbarBackground(Color("AccentColor"), for: .navigationBar)
}
}
}

#Preview {
@State var presentingAccount = false
return Dashboard(presentingAccount: $presentingAccount)
}
25 changes: 25 additions & 0 deletions ENGAGEHF/Education/EducationView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// 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
//
// 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")
.accessibilityLabel(Text("EDU"))
}
}
19 changes: 19 additions & 0 deletions ENGAGEHF/Functions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// 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
//

// Based on https://github.com/StanfordBDHG/PediatricAppleWatchStudy/pull/54

const {onCall} = require("firebase-functions/v2/https");
const {logger, https} = require("firebase-functions/v2");
const {FieldValue} = require("firebase-admin/firestore");
const admin = require("firebase-admin");
const {beforeUserCreated} = require("firebase-functions/v2/identity");

admin.initializeApp();


25 changes: 25 additions & 0 deletions ENGAGEHF/HeartHealth/HeartHealthView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// 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")
.accessibilityLabel(Text("HH"))
}
}
31 changes: 22 additions & 9 deletions ENGAGEHF/Home.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import SwiftUI

struct HomeView: View {
enum Tabs: String {
case schedule
case contact
case home
case heart
case medications
case education
case mockUpload
}

Expand All @@ -23,21 +25,31 @@ struct HomeView: View {
}


@AppStorage(StorageKeys.homeTabSelection) private var selectedTab = Tabs.schedule
@AppStorage(StorageKeys.homeTabSelection) private var selectedTab = Tabs.home
@State private var presentingAccount = false


var body: some View {
TabView(selection: $selectedTab) {
ScheduleView(presentingAccount: $presentingAccount)
.tag(Tabs.schedule)
Dashboard(presentingAccount: $presentingAccount)
.tag(Tabs.home)
.tabItem {
Label("SCHEDULE_TAB_TITLE", systemImage: "list.clipboard")
Label("Home", systemImage: "house")
}
Contacts(presentingAccount: $presentingAccount)
.tag(Tabs.contact)
HeartHealth(presentingAccount: $presentingAccount)
.tag(Tabs.heart)
.tabItem {
Label("CONTACTS_TAB_TITLE", systemImage: "person.fill")
Label("Heart Health", systemImage: "heart.square")
}
Medications(presentingAccount: $presentingAccount)
.tag(Tabs.medications)
.tabItem {
Label("Medications", systemImage: "pill")
}
Education(presentingAccount: $presentingAccount)
.tag(Tabs.education)
.tabItem {
Label("Education", systemImage: "book.pages")
}
if FeatureFlags.disableFirebase {
MockUpload(presentingAccount: $presentingAccount)
Expand All @@ -47,6 +59,7 @@ struct HomeView: View {
}
}
}
.accessibilityLabel(Text("Tab Bar"))
.sheet(isPresented: $presentingAccount) {
AccountSheet()
}
Expand Down
25 changes: 25 additions & 0 deletions ENGAGEHF/Medications/MedicationsView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// 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
//
// 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")
.accessibilityLabel(Text("MED"))
}
}
Loading
Loading