default is animated, not sure what i was thinking earlier today

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-10-24 14:07:30 -05:00
parent ae431b8b2b
commit c043fff7bd

View File

@ -18,7 +18,7 @@ public class ToggleModel: MoleculeModelProtocol, FormFieldProtocol {
public var selected: Bool = false
public var enabled: Bool = true
public var readOnly: Bool = false
public var animated: Bool = false
public var animated: Bool = true
public var action: ActionModelProtocol?
public var alternateAction: ActionModelProtocol?
public var accessibilityText: String?
@ -88,7 +88,7 @@ public class ToggleModel: MoleculeModelProtocol, FormFieldProtocol {
}
enabled = try typeContainer.decodeIfPresent(Bool.self, forKey: .enabled) ?? true
readOnly = try typeContainer.decodeIfPresent(Bool.self, forKey: .readOnly) ?? false
animated = try typeContainer.decodeIfPresent(Bool.self, forKey: .animated) ?? false
animated = try typeContainer.decodeIfPresent(Bool.self, forKey: .animated) ?? true
}