give DayChartView an unique id

This commit is contained in:
Trey t
2022-03-17 11:20:34 -05:00
parent 5617b12710
commit 0113e2304a

View File

@@ -9,6 +9,13 @@ import Foundation
import SwiftUI
struct DayChartView: ChartViewItemBuildable, View, Hashable {
init(color: Color, weekDay: Int, viewType: ViewType) {
self.color = color
self.weekDay = weekDay
self.viewType = viewType
}
var id = UUID()
var color: Color
var weekDay: Int
var viewType: ViewType