mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Story caption improvements
This commit is contained in:
@@ -160,6 +160,6 @@ public extension ContainerViewLayout {
|
||||
}
|
||||
|
||||
var standardInputHeight: CGFloat {
|
||||
return self.deviceMetrics.keyboardHeight(inLandscape: self.orientation == .landscape) + self.deviceMetrics.predictiveInputHeight(inLandscape: self.orientation == .landscape)
|
||||
return self.deviceMetrics.standardInputHeight(inLandscape: self.orientation == .landscape)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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