mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-23 15:40:39 +00:00
VoiceOver improvements
This commit is contained in:
parent
e07e7829eb
commit
8b05358fb4
|
@ -62,6 +62,16 @@ final class StatusView: UIView {
|
||||||
required init?(coder: NSCoder) {
|
required init?(coder: NSCoder) {
|
||||||
fatalError("init(coder:) has not been implemented")
|
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 {
|
extension StatusView {
|
||||||
|
|
Loading…
Reference in a new issue