Refine Apple Watch TOTP presentation (#57)
This commit is contained in:
@@ -195,13 +195,11 @@ private struct WatchRootView: View {
|
|||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
Text(record.issuer ?? record.account)
|
Text(record.issuer ?? record.account)
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
Text(record.account)
|
if record.issuer != nil {
|
||||||
.font(.caption)
|
Text(record.account)
|
||||||
.foregroundStyle(.secondary)
|
.font(.caption)
|
||||||
Text(record.code)
|
.foregroundStyle(.secondary)
|
||||||
.font(.system(.title3, design: .rounded, weight: .semibold))
|
}
|
||||||
.monospacedDigit()
|
|
||||||
.privacySensitive()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -234,13 +232,13 @@ private struct WatchTotpDetail: View {
|
|||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
Text(record.code)
|
Text(record.code)
|
||||||
.font(.system(.largeTitle, design: .rounded, weight: .bold))
|
.font(.system(size: 42, weight: .bold, design: .rounded))
|
||||||
.monospacedDigit()
|
.monospacedDigit()
|
||||||
.minimumScaleFactor(0.7)
|
.minimumScaleFactor(0.7)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.privacySensitive()
|
.privacySensitive()
|
||||||
ProgressView(
|
ProgressView(
|
||||||
value: Double(record.period - min(record.remaining, record.period)),
|
value: Double(min(record.remaining, record.period)),
|
||||||
total: Double(record.period)
|
total: Double(record.period)
|
||||||
)
|
)
|
||||||
.accessibilityLabel("Code validity")
|
.accessibilityLabel("Code validity")
|
||||||
|
|||||||
Reference in New Issue
Block a user