mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
b43fa0ecb5
commit
75ee418716
14 changed files with 228 additions and 40 deletions
|
|
@ -26,6 +26,15 @@ public struct ChatTextInputAttributes {
|
|||
}
|
||||
|
||||
public let originalTextAttributeKey = NSAttributedString.Key(rawValue: "Attribute__OriginalText")
|
||||
public final class OriginalTextAttribute: NSObject {
|
||||
public let id: Int
|
||||
public let string: String
|
||||
|
||||
public init(id: Int, string: String) {
|
||||
self.id = id
|
||||
self.string = string
|
||||
}
|
||||
}
|
||||
|
||||
public func stateAttributedStringForText(_ text: NSAttributedString) -> NSAttributedString {
|
||||
let sourceString = NSMutableAttributedString(attributedString: text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue