Various improvements

This commit is contained in:
Isaac
2025-03-04 15:57:41 +01:00
parent faa765b601
commit 4f29f9b1de
4 changed files with 41 additions and 32 deletions

View File

@@ -1050,6 +1050,7 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
}
public var toggleQuoteCollapse: ((NSRange) -> Void)?
public var onUpdateLayout: (() -> Void)?
private let displayInternal: ChatInputTextInternal
private let measureInternal: ChatInputTextInternal
@@ -1385,6 +1386,8 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
for id in removedBlockQuotes {
self.blockQuotes.removeValue(forKey: id)
}
self.onUpdateLayout?()
}
override public func caretRect(for position: UITextPosition) -> CGRect {