app-architecture
app-architecture copied to clipboard
Incorrect Keys in FolderViewController Causing Wrong Animations
These keys in FolderViewController
are reversed and cause some changes to call reloadData instead of the correct insert animation. This incorrect code is in the book as well.
let oldValue = userInfo[Item.newValueKey]
let newValue = userInfo[Item.oldValueKey]
https://github.com/objcio/app-architecture/blob/master/Recordings-MVC/Recordings/FolderViewController.swift#L42-L43
Confirmed, switch the values to make animation work correctly.