VoiceOver improvements

This commit is contained in:
Justin Mazzocchi 2021-02-06 18:27:17 -08:00
parent e07e7829eb
commit 8b05358fb4
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -62,6 +62,16 @@ final class StatusView: UIView {
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func accessibilityActivate() -> Bool {
if !statusConfiguration.viewModel.shouldShowContent {
statusConfiguration.viewModel.toggleShowContent()
return true
} else {
return super.accessibilityActivate()
}
}
}
extension StatusView {