Skip to content

Commit

Permalink
♿ Add accessibility label to close button
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed May 27, 2022
1 parent dd966f4 commit bff4440
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ private extension UIViewController {

view.addSubview(dismissButton)

dismissButton.accessibilityLabel = "Close"

NSLayoutConstraint.activate([
view.safeAreaLayoutGuide.trailingAnchor.constraint(equalToSystemSpacingAfter: dismissButton.trailingAnchor, multiplier: 1),
dismissButton.topAnchor.constraint(equalToSystemSpacingBelow: view.safeAreaLayoutGuide.topAnchor, multiplier: 1)
Expand Down

0 comments on commit bff4440

Please sign in to comment.