Skip to content

Commit 9f0e7c5

Browse files
authored
Adjust frame sizes and text scaling in LiveActivity (#610)
1 parent ce0c292 commit 9f0e7c5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

LoopFollowLAExtension/LoopFollowLiveActivity.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private struct LockScreenLiveActivityView: View {
249249
.foregroundStyle(.white.opacity(0.80))
250250
.lineLimit(1)
251251
}
252-
.frame(minWidth: 168, maxWidth: 190, alignment: .leading)
252+
.frame(minWidth: 160, maxWidth: 184, alignment: .leading)
253253
.layoutPriority(2)
254254

255255
Rectangle()
@@ -343,15 +343,19 @@ private struct MetricBlock: View {
343343
Text(label)
344344
.font(.system(size: 12, weight: .semibold, design: .rounded))
345345
.foregroundStyle(.white.opacity(0.78))
346+
.lineLimit(1)
347+
.minimumScaleFactor(0.80)
346348

347349
Text(value)
348350
.font(.system(size: 16, weight: .bold, design: .rounded))
349351
.monospacedDigit()
350352
.foregroundStyle(.white)
351353
.lineLimit(1)
352-
.minimumScaleFactor(0.85)
354+
.minimumScaleFactor(0.65)
355+
.allowsTightening(true)
356+
.layoutPriority(1)
353357
}
354-
.frame(width: 60, alignment: .leading)
358+
.frame(width: 72, alignment: .leading)
355359
}
356360
}
357361

@@ -389,7 +393,7 @@ private struct SlotView: View {
389393
var body: some View {
390394
if option == .none {
391395
Color.clear
392-
.frame(width: 60, height: 36)
396+
.frame(width: 72, height: 36)
393397
} else {
394398
MetricBlock(label: option.gridLabel, value: slotFormattedValue(option: option, snapshot: snapshot))
395399
}

0 commit comments

Comments
 (0)