update main view header bar graph font

This commit is contained in:
Trey t
2022-02-06 15:17:31 -06:00
parent 9ed803d9cf
commit 4ff9d7ad91
2 changed files with 3 additions and 3 deletions

View File

@@ -99,10 +99,10 @@ struct HeaderStatsView : UIViewRepresentable {
dataSet.roundedCornerValue = 10
if let descriptor = UIFontDescriptor.preferredFontDescriptor(
withTextStyle: .body).withSymbolicTraits([.traitBold]) {
withTextStyle: .title1).withSymbolicTraits([.traitBold]) {
dataSet.valueFont = UIFont(descriptor: descriptor, size: 0)
} else {
dataSet.valueFont = UIFont.preferredFont(forTextStyle: .body)
dataSet.valueFont = UIFont.preferredFont(forTextStyle: .title1)
}
return dataSet