Skip to content

Commit

Permalink
Use minimum scale factor to avoid truncating last glucose change
Browse files Browse the repository at this point in the history
  • Loading branch information
gestrich committed Aug 5, 2024
1 parent 56ffcd4 commit 63a4fb9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public struct LatestGlucoseCircularView: View {
Text(viewModel.currentGlucoseDateText)
.strikethrough(viewModel.isGlucoseStale)
.font(.footnote)
.minimumScaleFactor(0.8)
Text(viewModel.currentGlucoseAndChangeText)
.foregroundStyle(egvColor)
.strikethrough(viewModel.isGlucoseStale)
Expand All @@ -37,6 +38,7 @@ public struct LatestGlucoseCircularView: View {
.frame(maxWidth: 15)
.offset(.init(width: 0.0, height: -7.0))
.accessibilityLabel(Text(currentTrendImageName))
.minimumScaleFactor(0.8)
}
}
}
Expand Down

0 comments on commit 63a4fb9

Please sign in to comment.