mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Combo update
This commit is contained in:
@@ -30,6 +30,8 @@ open class GalleryControllerNode: ASDisplayNode, UIScrollViewDelegate, UIGesture
|
||||
public var areControlsHidden = false
|
||||
public var controlsVisibilityChanged: ((Bool) -> Void)?
|
||||
|
||||
public var updateOrientation: ((UIInterfaceOrientation) -> Void)?
|
||||
|
||||
public var isBackgroundExtendedOverNavigationBar = true {
|
||||
didSet {
|
||||
if let (navigationBarHeight, layout) = self.containerLayout {
|
||||
@@ -69,6 +71,12 @@ open class GalleryControllerNode: ASDisplayNode, UIScrollViewDelegate, UIGesture
|
||||
}
|
||||
}
|
||||
|
||||
self.pager.updateOrientation = { [weak self] orientation in
|
||||
if let strongSelf = self {
|
||||
strongSelf.updateOrientation?(orientation)
|
||||
}
|
||||
}
|
||||
|
||||
self.pager.dismiss = { [weak self] in
|
||||
if let strongSelf = self {
|
||||
var interfaceAnimationCompleted = false
|
||||
|
||||
Reference in New Issue
Block a user