Improved reordering

This commit is contained in:
Ali
2019-11-15 16:46:53 +04:00
parent a2b69da52e
commit 29a7e6e0c8
5 changed files with 90 additions and 18 deletions

View File

@@ -1820,6 +1820,13 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
self.revealOptionSelected(ItemListRevealOption(key: action.key, title: "", icon: .none, color: .black, textColor: .white), animated: false)
}
}
override func snapshotForReordering() -> UIView? {
self.backgroundNode.alpha = 0.9
let result = self.view.snapshotContentTree()
self.backgroundNode.alpha = 1.0
return result
}
}
private func foldLineBreaks(_ text: String) -> String {