diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift b/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift index 473e56df..99dc419e 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift @@ -26,10 +26,10 @@ import VDS var groupName: String? /// Disables all selection logic when setting the value of isSelected, reducing it to a stored property. - public var updateSelectionOnly: Bool = false + open var updateSelectionOnly: Bool = false /// Action Block called when the switch is selected. - public var actionBlock: ActionBlock? { + open var actionBlock: ActionBlock? { get { nil } set { if let action = newValue { @@ -110,7 +110,7 @@ import VDS //-------------------------------------------------- /// This will toggle the state of the Checkbox and execute the actionBlock if provided. - public func toggleAndAction() { + open func toggleAndAction() { toggle() } @@ -120,7 +120,7 @@ import VDS /// Programmatic means to check/uncheck the box. /// - parameter selected: state of the check box: true = checked OR false = unchecked. /// - parameter animated: allows the state of the checkbox to change with or without animation. - public func updateSelection(to selected: Bool, animated: Bool) { + open func updateSelection(to selected: Bool, animated: Bool) { DispatchQueue.main.async { self.isAnimated = animated @@ -131,7 +131,7 @@ import VDS /// updates the visuals of the check mark and background. /// - parameter isSelected: the check state of the checkbox. /// - parameter isAnimated: determines of the changes should animate or immediately refelect. - public func updateCheckboxUI(isSelected: Bool, isAnimated: Bool) { + open func updateCheckboxUI(isSelected: Bool, isAnimated: Bool) { DispatchQueue.main.async { self.isAnimated = isAnimated @@ -145,9 +145,9 @@ import VDS open func needsToBeConstrained() -> Bool { true } - public func horizontalAlignment() -> UIStackView.Alignment { .leading } + open func horizontalAlignment() -> UIStackView.Alignment { .leading } - public func updateView(_ size: CGFloat) {} + open func updateView(_ size: CGFloat) {} private func performCheckboxAction(with actionModel: ActionModelProtocol, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) { MVMCoreUIActionHandler.performActionUnstructured(with: actionModel, sourceModel: viewModel, additionalData: additionalData, delegateObject: delegateObject)