mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Drawing improvements
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user