Skip to content

Commit f07fc7b

Browse files
authored
Remove AccessibilityElement.deprecated_accessibility (#544)
2 parents d3d6692 + 14b84d2 commit f07fc7b

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

BlueprintUICommonControls/Sources/AccessibilityElement.swift

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -201,33 +201,4 @@ extension Element {
201201
wrapping: self
202202
)
203203
}
204-
205-
206-
/// Wraps the receiver in an accessibility element with the provided values.
207-
///
208-
/// - Important: ⚠️ This overrides the accessibility of the contained element and all of its children ⚠️
209-
///
210-
/// - SeeAlso: ``accessibilityElement``
211-
@available(
212-
*,
213-
deprecated,
214-
renamed: "accessibilityElement(label:value:traits:hint:identifier:accessibilityFrameSize:)"
215-
)
216-
public func deprecated_accessibility(
217-
label: String? = nil,
218-
value: String? = nil,
219-
hint: String? = nil,
220-
identifier: String? = nil,
221-
traits: Set<Accessibility.Trait> = [],
222-
accessibilityFrameSize: CGSize? = nil
223-
) -> AccessibilityElement {
224-
accessibilityElement(
225-
label: label,
226-
value: value,
227-
traits: traits,
228-
hint: hint,
229-
identifier: identifier,
230-
accessibilityFrameSize: accessibilityFrameSize
231-
)
232-
}
233204
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Added
1313

1414
### Removed
15+
- `AccessibilityElement.deprecated_accessibility(…)`. This was deprecated in September 2021, and renamed from .accessibility(…) to .deprecated_accessibility(…) in Oct 2024.
1516

1617
### Changed
1718

0 commit comments

Comments
 (0)