Skip to content

Commit

Permalink
Improve VO UX for player controls screen
Browse files Browse the repository at this point in the history
  • Loading branch information
GianniCarlo committed Aug 13, 2023
1 parent 79e98de commit 589fcf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion BookPlayer/Coordinators/PlayerControlsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class PlayerControlsCoordinator: Coordinator {
self.navigationController.viewControllers = [vc]
self.navigationController.presentationController?.delegate = self

if #available(iOS 15.0, *),
if !UIAccessibility.isVoiceOverRunning,
#available(iOS 15.0, *),
let sheet = self.navigationController.sheetPresentationController {
sheet.detents = [.medium()]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ class PlayerControlsViewController: BaseViewController<PlayerControlsCoordinator
]
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

UIAccessibility.post(notification: .screenChanged, argument: self.mainContainterStackView)
}

func bindBoostVolumeObservers() {
self.boostSwitchControl.publisher(for: .valueChanged)
.sink { [weak self] control in
Expand Down

0 comments on commit 589fcf3

Please sign in to comment.