You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
the ASTableNode just jump to the top after the insertion
The insertion code like below, I try to scroll after insertion, in demo seems ok, but my project got a much more complicated cell & safeAreaInset, its totally disaster
// Table scroll to the top after insert
self.tableNode.insertRows(at: newIndexPaths, with: .none)
// This workaround looks ok just because the cell is simple in layout & rendering
self.tableNode.performBatch(animated: false, updates: {
self.tableNode.insertRows(at: newIndexPaths, with: .none)
}, completion: { (finished) in
self.tableNode.scrollToRow(at: newIndexPaths.last!, at: .top, animated: false)
})
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
AsdkDEMO.zip
Very simple demo
ASTableNode
just jump to the top after the insertionThe insertion code like below, I try to scroll after insertion, in demo seems ok, but my project got a much more complicated cell & safeAreaInset, its totally disaster
The text was updated successfully, but these errors were encountered: