Hide on-screen navigation when in fullscreen media view

This commit is contained in:
Ilya Laktyushin
2019-09-14 01:25:02 +03:00
parent 9e7107ef4e
commit 3d4be40ddb
8 changed files with 72 additions and 45 deletions

View File

@@ -837,6 +837,10 @@ public class GalleryController: ViewController {
self?.presentingViewController?.dismiss(animated: false, completion: nil)
}
self.galleryNode.controlsVisibilityChanged = { [weak self] visible in
self?.prefersOnScreenNavigationHidden = !visible
}
let baseNavigationController = self.baseNavigationController
self.galleryNode.baseNavigationController = { [weak baseNavigationController] in
return baseNavigationController