From 8e4ad2c41e25dd6f5b1638dff30a4c2bf497b6d1 Mon Sep 17 00:00:00 2001 From: Keerthy Date: Fri, 3 Nov 2023 00:11:16 +0530 Subject: [PATCH] Updated accessibilityText in ListItemModel for searchResults announcement --- MVMCoreUI/Atomic/Molecules/Items/ListItemModel.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCoreUI/Atomic/Molecules/Items/ListItemModel.swift b/MVMCoreUI/Atomic/Molecules/Items/ListItemModel.swift index a5320ad2..15af9686 100644 --- a/MVMCoreUI/Atomic/Molecules/Items/ListItemModel.swift +++ b/MVMCoreUI/Atomic/Molecules/Items/ListItemModel.swift @@ -18,6 +18,7 @@ public var hideArrow: Bool? public var line: LineModel? public var style: ListItemStyle? + public var accessibilityText: String? //-------------------------------------------------- // MARK: - Keys @@ -29,6 +30,7 @@ case hideArrow case line case style + case accessibilityText } //-------------------------------------------------- @@ -102,6 +104,7 @@ hideArrow = try typeContainer.decodeIfPresent(Bool.self, forKey: .hideArrow) line = try typeContainer.decodeIfPresent(LineModel.self, forKey: .line) style = try typeContainer.decodeIfPresent(ListItemStyle.self, forKey: .style) + accessibilityText = try typeContainer.decodeIfPresent(String.self, forKey: .accessibilityText) try super.init(from: decoder) } @@ -113,5 +116,6 @@ try container.encodeIfPresent(hideArrow, forKey: .hideArrow) try container.encodeIfPresent(line, forKey: .line) try container.encodeIfPresent(style, forKey: .style) + try container.encodeIfPresent(accessibilityText, forKey: .accessibilityText) } }