mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Business
This commit is contained in:
@@ -193,7 +193,7 @@ public final class TextFieldComponent: Component {
|
||||
|
||||
private let ellipsisView = ComponentView<Empty>()
|
||||
|
||||
private var inputState: InputState {
|
||||
public var inputState: InputState {
|
||||
let selectionRange: Range<Int> = self.textView.selectedRange.location ..< (self.textView.selectedRange.location + self.textView.selectedRange.length)
|
||||
return InputState(inputText: stateAttributedStringForText(self.textView.attributedText ?? NSAttributedString()), selectionRange: selectionRange)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user