mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -184,6 +184,7 @@ open class ViewControllerComponentContainer: ViewController {
|
||||
environment: {
|
||||
environment
|
||||
},
|
||||
forceUpdate: self.controller?.forceNextUpdate ?? false,
|
||||
containerSize: layout.size
|
||||
)
|
||||
transition.setFrame(view: self.hostView, frame: CGRect(origin: CGPoint(), size: layout.size), completion: nil)
|
||||
@@ -306,6 +307,13 @@ open class ViewControllerComponentContainer: ViewController {
|
||||
super.dismiss(animated: flag, completion: completion)
|
||||
}
|
||||
|
||||
fileprivate var forceNextUpdate = false
|
||||
public func requestLayout(forceUpdate: Bool, transition: ContainedViewLayoutTransition) {
|
||||
self.forceNextUpdate = forceUpdate
|
||||
self.requestLayout(transition: transition)
|
||||
self.forceNextUpdate = false
|
||||
}
|
||||
|
||||
override open func containerLayoutUpdated(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) {
|
||||
super.containerLayoutUpdated(layout, transition: transition)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user