Currently, it's unclear from the docs what viewReuseId means. If it should be used to uniquely identify every single view, if it's useful in collection view cells, if it's useful for animation, etc. This issue serves as a bookmark to make this clearer in the documentation.
For those interested, viewReuseId should not uniquely identify each view. Rather, it should identify layouts that are the same across a few different views. If you have a collection view with cells that all have the same layouts but different content, each element of the cell should have a unique view reuse ID. Therefore, every cell will have the same view reuse IDs for its elements.
Additionally, view reuse IDs are useful for animations. It makes them faster because it can reuse the first layout's elements when animating to a second layout.
Currently, it's unclear from the docs what
viewReuseId
means. If it should be used to uniquely identify every single view, if it's useful in collection view cells, if it's useful for animation, etc. This issue serves as a bookmark to make this clearer in the documentation.For those interested,
viewReuseId
should not uniquely identify each view. Rather, it should identify layouts that are the same across a few different views. If you have a collection view with cells that all have the same layouts but different content, each element of the cell should have a unique view reuse ID. Therefore, every cell will have the same view reuse IDs for its elements.Additionally, view reuse IDs are useful for animations. It makes them faster because it can reuse the first layout's elements when animating to a second layout.