I'm not bothered that it isn't possible to have List use SwiftUI defined animations but I would at least like the animation completion to work so I can do something after the default row insert animation completes, e.g.
private func addItem() {
var transaction = Transaction(animation: .default)
transaction.addAnimationCompletion {
// need this after the row insert animation finishes.
print("Complete")
}
withTransaction(transaction) {
let newItem = Item(timestamp: Date())
items.append(newItem)
}
}
After a row has been inserted and animated I plan to programatically select it and navigate. I don't want both of these animations to happen simultaneously. Right now completion just fires instantly.
Submitted FB17267533 referencing FB15436970