Initial implementation of attachment menu

This commit is contained in:
Ilya Laktyushin
2022-02-11 19:38:28 +03:00
parent 8bd663e908
commit 7da0357b6d
45 changed files with 3105 additions and 191 deletions

View File

@@ -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