updated to remove codable
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
2247e529c0
commit
d87adf477c
@ -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
|
||||
//--------------------------------------------------
|
||||
|
||||
@ -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
|
||||
//--------------------------------------------------
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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?
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user