mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix input tint on iOS 18
This commit is contained in:
@@ -54,6 +54,7 @@ final class AccessoryItemIconButton: HighlightTrackingButton, GlassBackgroundVie
|
||||
switch item {
|
||||
case .input, .botInput, .silentPost:
|
||||
self.iconImageView.isHidden = true
|
||||
self.iconImageView.tintMask.isHidden = true
|
||||
self.animationView = ComponentView<Empty>()
|
||||
self.tintMaskAnimationView = UIImageView()
|
||||
default:
|
||||
@@ -211,6 +212,7 @@ final class AccessoryItemIconButton: HighlightTrackingButton, GlassBackgroundVie
|
||||
imageFrame.origin.y += 1.0
|
||||
}
|
||||
self.iconImageView.frame = imageFrame
|
||||
self.iconImageView.tintMask.frame = imageFrame
|
||||
|
||||
if let animationView = self.animationView {
|
||||
let width = AccessoryItemIconButton.calculateWidth(item: item, image: image, text: "", strings: self.strings)
|
||||
|
||||
Reference in New Issue
Block a user