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 the backdrop alpha issue (#572) #573

Merged
merged 4 commits into from
Oct 15, 2022
Merged

Fix the backdrop alpha issue (#572) #573

merged 4 commits into from
Oct 15, 2022

Conversation

scenee
Copy link
Owner

@scenee scenee commented Oct 13, 2022

This fixes #572. The main change is that true is passed as a forceLayout parameter into viewWillTransition(to:with:) callbacks.

Because it's necessary for the backdrop alpha's update when the view size or its size classes changes.

This also fixes a regression by 9c45c31.

-        layoutAdapter.activateLayout(for: state, forceLayout: true)
+        layoutAdapter.activateLayout(for: state, forceLayout: forceLayout)

The behavior before the above second change indicates that the method is working well even when forceLayout is set to true in their callbacks.

This fixes #572. The main change is that `true` is passed as a
`forceLayout` parameter into `viewWillTransition(to:with:)` callbacks.

Because it's necessary for the backdrop alpha's update when the view
size or its size classes changes.

This also fixes a regression by 9c45c31.

```diff
-        layoutAdapter.activateLayout(for: state, forceLayout: true)
+        layoutAdapter.activateLayout(for: state, forceLayout: forceLayout)
```

The behavior before the above second change indicates that the method is
working well even when `forceLayout` is set to `true` in their callbacks.
@scenee scenee merged commit b941f91 into master Oct 15, 2022
@scenee scenee deleted the iss-572 branch October 15, 2022 00:06
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.

backdropAlpha does not change when layout changes without calling invalidateLayout
1 participant