Skip to content

Commit

Permalink
Accessibility enhancement with dynamic typing
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed May 20, 2024
1 parent 4018af0 commit 71a2216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ENGAGEHF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "ENGAGEHF/Supporting Files/Info.plist";
INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "Application must access bluetooth to connect to data collecting devices.";
INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "Application must access bluetooth to connect to data collecting devices and retrieve data from weight scales and blood pressure cuffs.";
INFOPLIST_KEY_NSCameraUsageDescription = "This message should never appear. Please adjust this when you start using camera information. We have to put this in here as ResearchKit has the possibility to use it and not putting it here returns an error on AppStore Connect.";
INFOPLIST_KEY_NSHealthShareUsageDescription = "The ENGAGE-HF app uses the step count to demonstrate Spezi's integration with HealthKit.";
INFOPLIST_KEY_NSHealthUpdateUsageDescription = "The ENGAGE-HF app uses the step count to demonstrate Spezi's integration with HealthKit.";
Expand Down Expand Up @@ -1001,7 +1001,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "ENGAGEHF/Supporting Files/Info.plist";
INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "Application must access bluetooth to connect to data collecting devices.";
INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "Application must access bluetooth to connect to data collecting devices and retrieve data from weight scales and blood pressure cuffs.";
INFOPLIST_KEY_NSCameraUsageDescription = "This message should never appear. Please adjust this when you start using camera information. We have to put this in here as ResearchKit has the possibility to use it and not putting it here returns an error on AppStore Connect.";
INFOPLIST_KEY_NSHealthShareUsageDescription = "The ENGAGE-HF app uses the step count to demonstrate Spezi's integration with HealthKit.";
INFOPLIST_KEY_NSHealthUpdateUsageDescription = "The ENGAGE-HF app uses the step count to demonstrate Spezi's integration with HealthKit.";
Expand Down
5 changes: 3 additions & 2 deletions ENGAGEHF/Bluetooth/Views/MeasurementLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ private struct PreviewWrapperMeasurementLayer: View {

struct MeasurementLayer: View {
@Environment(MeasurementManager.self) private var measurementManager
private let measurementTextSize: CGFloat = 60
private let subTitleSize: CGFloat = 25
@ScaledMetric private var measurementTextSize: CGFloat = 60

Check warning on line 27 in ENGAGEHF/Bluetooth/Views/MeasurementLayer.swift

View check run for this annotation

Codecov / codecov/patch

ENGAGEHF/Bluetooth/Views/MeasurementLayer.swift#L27

Added line #L27 was not covered by tests


var body: some View {
VStack(spacing: 15) {
Text(measurementManager.newMeasurement?.quantity.description ?? "???")
.font(.system(size: measurementTextSize, weight: .bold, design: .rounded))
.multilineTextAlignment(.center)
Text("Measurement Recorded")
.font(.title3)
.foregroundStyle(.secondary)
.multilineTextAlignment(.center)
}
}

Check warning on line 40 in ENGAGEHF/Bluetooth/Views/MeasurementLayer.swift

View check run for this annotation

Codecov / codecov/patch

ENGAGEHF/Bluetooth/Views/MeasurementLayer.swift#L30-L40

Added lines #L30 - L40 were not covered by tests
}
Expand Down

0 comments on commit 71a2216

Please sign in to comment.