From cf0e3086cf3e7534fceb8dad27193a8a79e22010 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 5 Dec 2023 15:46:34 -0600 Subject: [PATCH] added accessibilityText Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Buttons/Link/Link.swift | 7 +++---- MVMCoreUI/Atomic/Atoms/Buttons/Link/LinkModel.swift | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/Link/Link.swift b/MVMCoreUI/Atomic/Atoms/Buttons/Link/Link.swift index 5ca77679..9aea7b17 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/Link/Link.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/Link/Link.swift @@ -11,7 +11,7 @@ import VDSColorTokens import VDS open class Link: VDS.TextLink, VDSMoleculeViewProtocol { - + //-------------------------------------------------- // MARK: - Public Properties //-------------------------------------------------- @@ -36,7 +36,7 @@ open class Link: VDS.TextLink, VDSMoleculeViewProtocol { delegateObject: self.delegateObject) } } - + //-------------------------------------------------- // MARK: - Overrides //-------------------------------------------------- @@ -57,10 +57,9 @@ open class Link: VDS.TextLink, VDSMoleculeViewProtocol { // MARK: - MVMCoreViewProtocol //-------------------------------------------------- open class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? { 31 } - + open func updateView(_ size: CGFloat) { } - open func setupView() {} } // MARK: - MVMCoreUIViewConstrainingProtocol diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/Link/LinkModel.swift b/MVMCoreUI/Atomic/Atoms/Buttons/Link/LinkModel.swift index 7e9a4640..14e041e5 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/Link/LinkModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/Link/LinkModel.swift @@ -92,6 +92,7 @@ open class LinkModel: ButtonModelProtocol, MoleculeModelProtocol, EnableableMode try container.encode(moleculeName, forKey: .moleculeName) try container.encodeIfPresent(backgroundColor, forKey: .backgroundColor) try container.encodeIfPresent(accessibilityIdentifier, forKey: .accessibilityIdentifier) + try container.encodeIfPresent(accessibilityText, forKey: .accessibilityText) try container.encodeModel(action, forKey: .action) try container.encode(inverted, forKey: .inverted) try container.encode(enabled, forKey: .enabled)