mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Initial implementation of attachment menu
This commit is contained in:
@@ -453,6 +453,10 @@ open class LegacyController: ViewController, PresentableController {
|
||||
}
|
||||
|
||||
if self.controllerNode.controllerView == nil {
|
||||
if self.controllerNode.frame.width == 0.0, let layout = self.validLayout {
|
||||
self.controllerNode.frame = CGRect(origin: CGPoint(), size: layout.size)
|
||||
}
|
||||
|
||||
self.controllerNode.controllerView = self.legacyController.view
|
||||
if let legacyController = self.legacyController as? TGViewController {
|
||||
legacyController.ignoreAppearEvents = true
|
||||
|
||||
Reference in New Issue
Block a user