Skip to content

Commit

Permalink
AccessibilityBlocker aggressively blocking. (#483)
Browse files Browse the repository at this point in the history
Fixed a bug where `AccessibilityBlocker` would block accessibility when
`isBlocking` is `false`
  • Loading branch information
RoyalPineapple committed Mar 5, 2024
1 parent ecb8002 commit c46b5ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct AccessibilityBlocker: Element {

public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription? {
UIView.describe { config in
config[\.isAccessibilityElement] = !isBlocking
config[\.isAccessibilityElement] = false
config[\.accessibilityElementsHidden] = isBlocking
}
}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Main]

### Fixed
- Fixed a bug where `AccessibilityBlocker` would block accessibility when `isBlocking` is `false`

### Added

Expand Down

0 comments on commit c46b5ef

Please sign in to comment.