update main view header bar graph font
This commit is contained in:
@@ -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