diff --git a/MVMCoreUI.xcodeproj/project.pbxproj b/MVMCoreUI.xcodeproj/project.pbxproj index 88f04260..3c270af0 100644 --- a/MVMCoreUI.xcodeproj/project.pbxproj +++ b/MVMCoreUI.xcodeproj/project.pbxproj @@ -1546,8 +1546,8 @@ AA69AAF52445BF5700AF3D3B /* ListLeftVariableCheckboxBodyText.swift */, 522679C023FE886900906CBA /* ListLeftVariableCheckboxAllTextAndLinksModel.swift */, 522679BF23FE886900906CBA /* ListLeftVariableCheckboxAllTextAndLinks.swift */, - BB3BC12D2550094500297977 /* ListLeftVariableIconWithRightCaretAllTextLinks.swift */, BB3BC12E2550094500297977 /* ListLeftVariableIconWithRightCaretAllTextLinksModel.swift */, + BB3BC12D2550094500297977 /* ListLeftVariableIconWithRightCaretAllTextLinks.swift */, 8D24041423E7FC0B009E23BE /* ListLeftVariableIconWithRightCaretModel.swift */, 8D24041023E7FB9E009E23BE /* ListLeftVariableIconWithRightCaret.swift */, AA0A257724766C8A00862F64 /* ListLeftVariableIconWithRightCaretBodyTextModel.swift */, diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinks.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinks.swift index 75e8d299..e78d993f 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinks.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaretAllTextLinks.swift @@ -20,11 +20,13 @@ }() public lazy var stack: Stack = { - return Stack.createStack(with: [ - (view: leftImage, model: StackItemModel(horizontalAlignment: .fill)), - (view: eyebrowHeadlineBodyLink, model: StackItemModel(horizontalAlignment: .fill)), - (view: rightLabelStackItem, model: StackItemModel(horizontalAlignment: .fill,verticalAlignment: .top))], - axis: .horizontal) + return Stack(with: StackModel(molecules: [StackItemModel(horizontalAlignment: .fill), + + StackItemModel(horizontalAlignment: .fill), + + StackItemModel(horizontalAlignment: .fill,verticalAlignment: .top)], + axis: .horizontal), stackItems: [StackItem(andContain: leftImage), StackItem(andContain: eyebrowHeadlineBodyLink), rightLabelStackItem]) + }() open override func alignAccessoryToHero() -> CGPoint? { @@ -110,6 +112,7 @@ } else { // Only link. Manually add accessibility elements to ensure they are read in the right order. var elements: [Any] = [] + elements.append(leftImage) if let otherElements = eyebrowHeadlineBodyLink.getAccessibilityElements() { elements.append(otherElements) } @@ -120,3 +123,4 @@ } } } +