Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timing of layout margin layout invalidation for bars #168

Merged

Conversation

bryankeller
Copy link
Contributor

Change summary

This PR fixes the timing of layout and size invalidation when the layout margins change on an EpoxySwiftUIHostingView. For now, this only affects bar models, since those seem more likely to benefit from this change due to the the timing of layout margins being set during view controller transitions.

Before After
52516e8e-8764-49e3-afce-17951ae23f84 39230544-32fa-43b9-8e2b-425417b69d28

How was it tested?

How did you verify that this change accomplished what you expected? Add more detail as needed.

  • Wrote automated tests
  • 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.

  • Risky changes have been put behind a feature flag, e.g. CollectionViewConfiguration
  • Added a CHANGELOG.md entry in the "Unreleased" section for any library changes

@bryankeller bryankeller requested a review from brynbodayle April 22, 2024 20:32
CHANGELOG.md Outdated Show resolved Hide resolved
@bryankeller bryankeller enabled auto-merge (squash) April 22, 2024 21:18
@bryankeller bryankeller force-pushed the bk/fix-bar-layout-margin-layout-timing branch from e37cdcf to 262be39 Compare April 23, 2024 05:37
@bryankeller bryankeller force-pushed the bk/fix-bar-layout-margin-layout-timing branch from 262be39 to af28019 Compare April 23, 2024 05:42
@bryankeller bryankeller merged commit 158193d into airbnb:master Apr 23, 2024
9 checks passed
@bryankeller bryankeller deleted the bk/fix-bar-layout-margin-layout-timing branch April 23, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants