Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
4ac9519195
commit
1a6c1a3c9d
@ -79,6 +79,7 @@ struct DigitView: View {
|
||||
.minimumScaleFactor(0.1)
|
||||
.lineSpacing(0)
|
||||
.padding(.vertical, 0)
|
||||
.padding(.horizontal, 0)
|
||||
.baselineOffset(0)
|
||||
.onAppear {
|
||||
let optimalSize = FontUtils.calculateOptimalFontSize(digit: digit,
|
||||
|
||||
@ -119,6 +119,9 @@ struct TimeDisplayView: View {
|
||||
// MARK: - Preview
|
||||
#Preview {
|
||||
let style = ClockStyle()
|
||||
style.fontFamily = .verdana
|
||||
style.fontWeight = .medium
|
||||
|
||||
return TimeDisplayView(
|
||||
date: Date(),
|
||||
use24Hour: style.use24Hour,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user