diff --git a/VDS/Components/Footnote/FootnoteGroup.swift b/VDS/Components/Footnote/FootnoteGroup.swift index 4a2a00c7..9eb6a10d 100644 --- a/VDS/Components/Footnote/FootnoteGroup.swift +++ b/VDS/Components/Footnote/FootnoteGroup.swift @@ -111,6 +111,12 @@ open class FootnoteGroup: View { width = nil footnoteItems = [] } + + /// Used to make changes to the View based off a change events or from local properties. + open override func updateView() { + super.updateView() + updateFootnoteItems() + } internal func updateFootnoteItems() { // symbol containers are as wide as the widest symbol container in the group. diff --git a/VDS/Components/Label/Attributes/LabelAttributeModel.swift b/VDS/Components/Label/Attributes/LabelAttributeModel.swift index 578a9e15..a147a954 100644 --- a/VDS/Components/Label/Attributes/LabelAttributeModel.swift +++ b/VDS/Components/Label/Attributes/LabelAttributeModel.swift @@ -39,6 +39,27 @@ public extension String { func isValid(range: NSRange) -> Bool { range.location >= 0 && range.length > 0 && range.location + range.length <= count } + + func index(from: Int) -> Index { + return self.index(startIndex, offsetBy: from) + } + + func substring(from: Int) -> String { + let fromIndex = index(from: from) + return String(self[fromIndex...]) + } + + func substring(to: Int) -> String { + let toIndex = index(from: to) + return String(self[..) -> String { + let startIndex = index(from: r.lowerBound) + let endIndex = index(from: r.upperBound) + return String(self[startIndex.. 0 { + let preText = text.substring(to: strikethroughLocation) + let postText = text.substring(from: strikethroughLocation) + accessibilityLabels.append(preText) + accessibilityLabels.append(strikethroughAccessibilityText) + accessibilityLabels.append(postText) + } else { + accessibilityLabels.append(text) + } + } + return accessibilityLabels.joined(separator: " ") + } + bold = false hideCurrency = false leadingText = nil diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt index 9a571773..e042c676 100644 --- a/VDS/SupportingFiles/ReleaseNotes.txt +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -1,6 +1,8 @@ 1.0.76 ---------------- - ONEAPP-11355 - ListUnordered - Finished Development +- CXTDT-630735 - PriceLockup - Accessibility +- CXTDT-626164 - FootnoteGroup - Dark mode 1.0.75 ----------------