// // LabelAttributeModel.swift // VDS // // Created by Matt Bruce on 8/3/22. // import Foundation import UIKit public protocol LabelAttributeModel: Codable { 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) } }