create tapable header that will switch between bar chart and percentage

WIP - add secondary header for 7 days

closed #21
This commit is contained in:
Trey t
2022-01-30 10:56:33 -06:00
parent 0d33aabb22
commit c77eecc6e2
6 changed files with 207 additions and 62 deletions

View File

@@ -95,6 +95,8 @@ struct HeaderStatsView : UIViewRepresentable {
dataSet.colors = Mood.allValues.map({ NSUIColor( $0.color ) })
dataSet.secondaryTextColor = UIColor.systemGray
dataSet.valueColors = [.white]
dataSet.highlightAlpha = 0.0
if let descriptor = UIFontDescriptor.preferredFontDescriptor(
withTextStyle: .body).withSymbolicTraits([.traitBold]) {
dataSet.valueFont = UIFont(descriptor: descriptor, size: 0)