mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -155,6 +155,10 @@ public extension ContainerViewLayout {
|
||||
return self.size.width > self.size.height ? .landscape : .portrait
|
||||
}
|
||||
|
||||
var standardKeyboardHeight: CGFloat {
|
||||
return self.deviceMetrics.keyboardHeight(inLandscape: self.orientation == .landscape)
|
||||
}
|
||||
|
||||
var standardInputHeight: CGFloat {
|
||||
return self.deviceMetrics.keyboardHeight(inLandscape: self.orientation == .landscape) + self.deviceMetrics.predictiveInputHeight(inLandscape: self.orientation == .landscape)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user