From d87adf477c2ef82e263ddd939b84a21e540f4245 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 30 Aug 2022 14:46:15 -0500 Subject: [PATCH] updated to remove codable Signed-off-by: Matt Bruce --- VDS/Components/Label/Attributes/LabelAttributeColor.swift | 2 +- VDS/Components/Label/Attributes/LabelAttributeFont.swift | 2 +- VDS/Components/Label/Attributes/LabelAttributeModel.swift | 2 +- VDS/Components/Label/Attributes/LabelAttributeUnderline.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VDS/Components/Label/Attributes/LabelAttributeColor.swift b/VDS/Components/Label/Attributes/LabelAttributeColor.swift index 977d3c6e..b04a0e5a 100644 --- a/VDS/Components/Label/Attributes/LabelAttributeColor.swift +++ b/VDS/Components/Label/Attributes/LabelAttributeColor.swift @@ -14,7 +14,7 @@ public struct LabelAttributeColor: LabelAttributeModel { //-------------------------------------------------- public var location: Int public var length: Int - @CodableColor public var color: UIColor + public var color: UIColor //-------------------------------------------------- // MARK: - Initializer //-------------------------------------------------- diff --git a/VDS/Components/Label/Attributes/LabelAttributeFont.swift b/VDS/Components/Label/Attributes/LabelAttributeFont.swift index c1dccc53..767f5270 100644 --- a/VDS/Components/Label/Attributes/LabelAttributeFont.swift +++ b/VDS/Components/Label/Attributes/LabelAttributeFont.swift @@ -15,7 +15,7 @@ public struct LabelAttributeFont: LabelAttributeModel { public var location: Int public var length: Int public var style: TypographicalStyle - @CodableColor public var color: UIColor + public var color: UIColor //-------------------------------------------------- // MARK: - Initializer //-------------------------------------------------- diff --git a/VDS/Components/Label/Attributes/LabelAttributeModel.swift b/VDS/Components/Label/Attributes/LabelAttributeModel.swift index 0341b477..75e14f69 100644 --- a/VDS/Components/Label/Attributes/LabelAttributeModel.swift +++ b/VDS/Components/Label/Attributes/LabelAttributeModel.swift @@ -8,7 +8,7 @@ import Foundation import UIKit -public protocol LabelAttributeModel: Codable { +public protocol LabelAttributeModel { var location: Int { get set } var length: Int { get set } func setAttribute(on attributedString: NSMutableAttributedString) diff --git a/VDS/Components/Label/Attributes/LabelAttributeUnderline.swift b/VDS/Components/Label/Attributes/LabelAttributeUnderline.swift index 83a19a37..f7784711 100644 --- a/VDS/Components/Label/Attributes/LabelAttributeUnderline.swift +++ b/VDS/Components/Label/Attributes/LabelAttributeUnderline.swift @@ -11,7 +11,7 @@ import UIKit public struct LabelAttributeUnderline: LabelAttributeModel { public var location: Int public var length: Int - @OptionalCodableColor public var color: UIColor? + public var color: UIColor? public var style: UnderlineStyle = .single public var pattern: UnderlineStyle.Pattern?