update main view header bar graph font
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user