give DayChartView an unique id
This commit is contained in:
@@ -9,6 +9,13 @@ import Foundation
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct DayChartView: ChartViewItemBuildable, View, Hashable {
|
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 color: Color
|
||||||
var weekDay: Int
|
var weekDay: Int
|
||||||
var viewType: ViewType
|
var viewType: ViewType
|
||||||
|
|||||||
Reference in New Issue
Block a user