[WIP] Call UI

This commit is contained in:
Isaac
2023-12-01 01:06:22 +04:00
parent 835278b9dc
commit 06e3841f23
22 changed files with 1204 additions and 480 deletions

View File

@@ -11,8 +11,10 @@ public func chatTextInputAddFormattingAttribute(_ state: ChatTextInputState, att
state.inputText.enumerateAttributes(in: nsRange, options: .longestEffectiveRangeNotRequired) { attributes, range, _ in
for (key, _) in attributes {
if key == attribute {
addAttribute = false
attributesToRemove.append(key)
if nsRange == range {
addAttribute = false
attributesToRemove.append(key)
}
}
}
}