| 123456789101112131415161718192021222324252627282930 |
- import SwiftDate
- import SwiftUI
- enum BasalProfileEditor {
- enum Config {
- static let maxItemsCount = 48
- }
- class Item: Identifiable, Hashable, Equatable {
- let id = UUID()
- var rateIndex = 0
- var timeIndex = 0
- init(rateIndex: Int, selectedIndex: Int) {
- self.rateIndex = rateIndex
- timeIndex = selectedIndex
- }
- static func == (lhs: Item, rhs: Item) -> Bool {
- lhs.timeIndex == rhs.timeIndex
- }
- func hash(into hasher: inout Hasher) {
- hasher.combine(timeIndex)
- }
- }
- }
- protocol BasalProfileEditorProvider: Provider {}
|