From c043fff7bd854a906f1873c1979fdb8ef7c283be Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 24 Oct 2022 14:07:30 -0500 Subject: [PATCH] default is animated, not sure what i was thinking earlier today Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift b/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift index fec5a78d..1389b11e 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/ToggleModel.swift @@ -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 }