Hide scroll down button VoiceOver (#670)

* Hide scroll down button for VoiceOver users if the button is hidden for visual users

* Add change log
This commit is contained in:
sem pruijs 2023-03-06 08:34:03 +01:00 committed by GitHub
parent eed031c9cc
commit 25aa6963a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ struct RoomScreen: View {
.padding()
}
.opacity(context.scrollToBottomButtonVisible ? 1.0 : 0.0)
.accessibilityHidden(!context.scrollToBottomButtonVisible)
.animation(.elementDefault, value: context.scrollToBottomButtonVisible)
}

1
changelog.d/pr670.bugfix Normal file
View File

@ -0,0 +1 @@
Hides the scroll down button for VoiceOver users if it is hidden for visual users by Sem Pruijs