pass initial size to CollectionViewCell's content view
Background
one of our Airbnb engineers noticed an issue where a SwiftUI view was laying out and loading images with an initial incorrect size, (72, 67) instead of the expected (320, 160)
after tracing the code, I was seeing that an initial SwiftUI layout pass was occurring before the cell's content view received it's initial size
How was it tested?
How did you verify that this change accomplished what you expected? Add more detail as needed.
[ ] Wrote automated tests
[x] Built and ran on the iOS simulator
[ ] Built and ran on a device
Pull request checklist
All items in this checklist must be completed before a pull request will be reviewed.
[x] Risky changes have been put behind a feature flag, e.g. CollectionViewConfiguration
[x] Added a CHANGELOG.md entry in the "Unreleased" section for any library changes
Change summary
CollectionViewCell
's content viewBackground
How was it tested?
How did you verify that this change accomplished what you expected? Add more detail as needed.
Pull request checklist
All items in this checklist must be completed before a pull request will be reviewed.
CollectionViewConfiguration
CHANGELOG.md
entry in the "Unreleased" section for any library changes