split all the logic out of filter view into protocols and other shit

This commit is contained in:
Trey t
2022-01-17 15:46:38 -06:00
parent fd185ac80f
commit 9e10cfff1d
6 changed files with 209 additions and 147 deletions

View File

@@ -0,0 +1,22 @@
//
// ChartViewItemBuildable.swift
// Feels
//
// Created by Trey Tartt on 1/17/22.
//
import SwiftUI
enum ViewType: Hashable {
case cicle
case square
case text(String)
}
protocol ChartViewItemBuildable: View {
var color: Color { get }
var weekDay: Int { get }
var viewType: ViewType { get }
init(color: Color, weekDay: Int, viewType: ViewType)
}