Drawing improvements

This commit is contained in:
Ilya Laktyushin
2022-12-21 14:35:42 +04:00
parent 108073a6b8
commit 1a55c2f626
11 changed files with 597 additions and 767 deletions

View File

@@ -109,6 +109,19 @@ public final class LegacyControllerContext: NSObject, LegacyComponentsContext {
}
}
public func lockPortrait() {
if let controller = self.controller as? LegacyController {
controller.supportedOrientations = ViewControllerSupportedOrientations(regularSize: .all, compactSize: .portrait)
}
}
public func unlockPortrait() {
if let controller = self.controller as? LegacyController {
controller.supportedOrientations = ViewControllerSupportedOrientations(regularSize: .all, compactSize: .allButUpsideDown)
}
}
public func keyCommandController() -> TGKeyCommandController! {
return nil
}