import Foundation enum TargetsEditor { enum Config {} class Item: Identifiable, Hashable, Equatable { let id = UUID() var lowIndex = 0 var highIndex = 0 var timeIndex = 0 init(lowIndex: Int, highIndex: Int, timeIndex: Int) { self.lowIndex = lowIndex self.highIndex = highIndex self.timeIndex = timeIndex } static func == (lhs: Item, rhs: Item) -> Bool { lhs.timeIndex == rhs.timeIndex } func hash(into hasher: inout Hasher) { hasher.combine(timeIndex) } } } protocol TargetsEditorProvider: Provider { var profile: BGTargets { get } func saveProfile(_ profile: BGTargets) }