Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtxie committed Feb 19, 2024
1 parent fad444b commit ec8fc39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CubeTime/StopwatchManager/FontManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@ extension View {
modifier(RecursiveMono(size: RecursiveMono.styleToValue(style: style),
weight: RecursiveMono.weightToValue(weight: weight)))
}

func recursiveMono(style: Font.TextStyle, weightValue: Int) -> some View {
modifier(RecursiveMono(size: RecursiveMono.styleToValue(style: style),
weight: weightValue))
}
}
10 changes: 3 additions & 7 deletions CubeTime/TimeList/TimeCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,12 @@ struct TimeCard: View {

VStack {
Text(formattedTime)
.font(.body.weight(.bold))
.recursiveMono(style: .body, weightValue: 650)
}
}
.frame(maxWidth: cardWidth, minHeight: cardHeight, maxHeight: cardHeight)
.onTapGesture {
currentSolve = solve
}
.onLongPressGesture {
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
}
.onTapGesture { currentSolve = solve }
.onLongPressGesture { UIImpactFeedbackGenerator(style: .heavy).impactOccurred() }

.contentShape(.contextMenuPreview, RoundedRectangle(cornerRadius: 8, style: .continuous))
.contextMenu {
Expand Down

0 comments on commit ec8fc39

Please sign in to comment.