VEditorKit
VEditorKit copied to clipboard
[Bug] Unexpected _ASTableViewCell
Unexpected view(_ASTableViewCell) hammering UITextView selection function.

Expected UITableViewCell
(lldb) po self.tableNode.view.visibleCells[0].subviews[0].subviews
▿ 1 element
- 0 : <VEditorKit.VEditorImageNode-View: 0x106ee3110; node = <VEditorKit.VEditorImageNode: 0x1079efc00>; frame = (0 0; 414 450); clipsToBounds = YES>
Unexpected UITableViewCell
(lldb) po self.tableNode.view.subviews[10].subviews[0].subviews
▿ 1 element
- 0 : <UIImageView: 0x10f73a3f0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = <CALayer: 0x2815358e0>>
How to solve this issue?
- Check empty subviews UITableCellContrainerView
- Check UIImageView contained UITableCellContainterView
- Remove upper case zombie cells
self.tableNode.performBatchUpdates({
self.tableNode.deleteRows(at: deleteIndexPaths,
with: animated ? .automatic: .none)
}, completion: { _ in
_ = self.tableNode.view.subviews
.filter({ $0 is UITableViewCell })
.filter { $0.subviews.first?.subviews.isEmpty ?? false ||
$0.subviews.first?.subviews.first is UIImageView }
.map { $0.removeFromSuperview() }
})
I just resolve about this issue at https://github.com/GeekTree0101/VEditorKit/pull/62 but, we must have to find best solution & core bug at Texture framework