update main view header bar graph font
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"repositoryURL": "https://github.com/akatreyt/ChartsPackage",
|
||||
"state": {
|
||||
"branch": "master",
|
||||
"revision": "f4f414828b79f0aa545f84f6fe38e2cf7f239865",
|
||||
"revision": "e55fef3e8c294d5c2b25014d6d0734760b3ca6fa",
|
||||
"version": null
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user