// // LabelAttributeModel.swift // VDS // // Created by Matt Bruce on 8/3/22. // import Foundation import UIKit public protocol LabelAttributeModel: AnyEquatable, Withable, Equatable, Identifiable where ID == UUID { var location: Int { get set } var length: Int { get set } func setAttribute(on attributedString: NSMutableAttributedString) } extension LabelAttributeModel { public var range: NSRange { NSRange(location: location, length: length) } public static func == (lhs: any LabelAttributeModel, rhs: any LabelAttributeModel) -> Bool { lhs.isEqual(rhs) } }