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

@@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/akatreyt/ChartsPackage", "repositoryURL": "https://github.com/akatreyt/ChartsPackage",
"state": { "state": {
"branch": "master", "branch": "master",
"revision": "f4f414828b79f0aa545f84f6fe38e2cf7f239865", "revision": "e55fef3e8c294d5c2b25014d6d0734760b3ca6fa",
"version": null "version": null
} }
}, },

View File

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