mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -2352,14 +2352,6 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate {
|
||||
backgroundView.frame = self.textInputBackgroundNode.frame
|
||||
|
||||
func updateIsCaretHidden(view: UIView, isHidden: Bool) {
|
||||
return;
|
||||
if String(describing: type(of: view)).contains("TextSelectionView") {
|
||||
view.isHidden = isHidden
|
||||
} else {
|
||||
for subview in view.subviews {
|
||||
updateIsCaretHidden(view: subview, isHidden: isHidden)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
updateIsCaretHidden(view: textInputNode.view, isHidden: true)
|
||||
|
||||
Reference in New Issue
Block a user