mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Story caption improvements
This commit is contained in:
@@ -266,7 +266,7 @@ public enum DeviceMetrics: CaseIterable, Equatable {
|
||||
return 20.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public func keyboardHeight(inLandscape: Bool) -> CGFloat {
|
||||
if inLandscape {
|
||||
switch self {
|
||||
@@ -337,6 +337,10 @@ public enum DeviceMetrics: CaseIterable, Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
public func standardInputHeight(inLandscape: Bool) -> CGFloat {
|
||||
return self.keyboardHeight(inLandscape: inLandscape) + predictiveInputHeight(inLandscape: inLandscape)
|
||||
}
|
||||
|
||||
public var hasTopNotch: Bool {
|
||||
switch self {
|
||||
case .iPhoneX, .iPhoneXSMax, .iPhoneXr, .iPhone12Mini, .iPhone12, .iPhone12ProMax:
|
||||
|
||||
Reference in New Issue
Block a user