reverting

This commit is contained in:
Kevin G Christiano 2020-02-19 12:36:28 -05:00
parent 8b309c928f
commit 23fa0c5bad

View File

@ -13,9 +13,7 @@ public class LinkModel: ButtonModelProtocol, MoleculeModelProtocol {
// MARK: - Properties
//--------------------------------------------------
public class var identifier: String {
return "link"
}
public static var identifier: String = "link"
public var backgroundColor: Color?
public var title: String
@ -23,7 +21,6 @@ public class LinkModel: ButtonModelProtocol, MoleculeModelProtocol {
public var enabled = true
public var textColor = Color(uiColor: .mvmBlack)
public var disabledColor = Color(uiColor: .mvmCoolGray6)
public var moleculeName: String?
//--------------------------------------------------
// MARK: - Initializer
@ -54,7 +51,6 @@ public class LinkModel: ButtonModelProtocol, MoleculeModelProtocol {
required public init(from decoder: Decoder) throws {
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
moleculeName = try typeContainer.decodeIfPresent(String.self, forKey: .moleculeName)
backgroundColor = try typeContainer.decodeIfPresent(Color.self, forKey: .backgroundColor)
title = try typeContainer.decode(String.self, forKey: .title)
action = try typeContainer.decodeModel(codingKey: .action, typeCodingKey: ActionCodingKey.actionType)