updated to remove codable

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-30 14:46:15 -05:00
parent 2247e529c0
commit d87adf477c
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ public struct LabelAttributeColor: LabelAttributeModel {
//-------------------------------------------------- //--------------------------------------------------
public var location: Int public var location: Int
public var length: Int public var length: Int
@CodableColor public var color: UIColor public var color: UIColor
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Initializer // MARK: - Initializer
//-------------------------------------------------- //--------------------------------------------------

View File

@ -15,7 +15,7 @@ public struct LabelAttributeFont: LabelAttributeModel {
public var location: Int public var location: Int
public var length: Int public var length: Int
public var style: TypographicalStyle public var style: TypographicalStyle
@CodableColor public var color: UIColor public var color: UIColor
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Initializer // MARK: - Initializer
//-------------------------------------------------- //--------------------------------------------------

View File

@ -8,7 +8,7 @@
import Foundation import Foundation
import UIKit import UIKit
public protocol LabelAttributeModel: Codable { public protocol LabelAttributeModel {
var location: Int { get set } var location: Int { get set }
var length: Int { get set } var length: Int { get set }
func setAttribute(on attributedString: NSMutableAttributedString) func setAttribute(on attributedString: NSMutableAttributedString)

View File

@ -11,7 +11,7 @@ import UIKit
public struct LabelAttributeUnderline: LabelAttributeModel { public struct LabelAttributeUnderline: LabelAttributeModel {
public var location: Int public var location: Int
public var length: Int public var length: Int
@OptionalCodableColor public var color: UIColor? public var color: UIColor?
public var style: UnderlineStyle = .single public var style: UnderlineStyle = .single
public var pattern: UnderlineStyle.Pattern? public var pattern: UnderlineStyle.Pattern?