Skip to content

Commit 3bca9ed

Browse files
author
Isaac
committed
Fix input tint on iOS 18
1 parent a7385ad commit 3bca9ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/AccessoryItemIconButton.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ final class AccessoryItemIconButton: HighlightTrackingButton, GlassBackgroundVie
5454
switch item {
5555
case .input, .botInput, .silentPost:
5656
self.iconImageView.isHidden = true
57+
self.iconImageView.tintMask.isHidden = true
5758
self.animationView = ComponentView<Empty>()
5859
self.tintMaskAnimationView = UIImageView()
5960
default:
@@ -211,6 +212,7 @@ final class AccessoryItemIconButton: HighlightTrackingButton, GlassBackgroundVie
211212
imageFrame.origin.y += 1.0
212213
}
213214
self.iconImageView.frame = imageFrame
215+
self.iconImageView.tintMask.frame = imageFrame
214216

215217
if let animationView = self.animationView {
216218
let width = AccessoryItemIconButton.calculateWidth(item: item, image: image, text: "", strings: self.strings)

0 commit comments

Comments
 (0)