diff --git a/MVMCoreUI/Atomic/Atoms/Views/Label/LabelAttributeColorModel.swift b/MVMCoreUI/Atomic/Atoms/Views/Label/LabelAttributeColorModel.swift index 94579d02..8fa1aa58 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Label/LabelAttributeColorModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Label/LabelAttributeColorModel.swift @@ -24,10 +24,14 @@ case textColor } + public init(_ textColor: Color?, _ location: Int, _ length: Int){ + self.textColor = textColor + super.init(location, length) + } + //-------------------------------------------------- // MARK: - Codec //-------------------------------------------------- - required public init(from decoder: Decoder) throws { let typeContainer = try decoder.container(keyedBy: CodingKeys.self) textColor = try typeContainer.decodeIfPresent(Color.self, forKey: .textColor)