Skip to content

Commit fe46da6

Browse files
committed
Change the backdrop alpha in a screen orientation.
This change is related to issue #466 and PR #471. But the issue doesn't reproduce again after this commit. And then the backdrop alpha update should be necessary for the change of the view size or its size classes. See #572 for more detail.
1 parent f917316 commit fe46da6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Sources/Core.swift

+3-6
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,12 @@ class Core: NSObject, UIGestureRecognizerDelegate {
210210
layoutAdapter.updateStaticConstraint()
211211
layoutAdapter.activateLayout(for: state, forceLayout: true)
212212

213-
// Update the backdrop alpha only when called in `Controller.show(animated:completion:)`
214-
// Because that prevents a backdrop flicking just before presenting a panel(#466).
215-
if forceLayout {
216-
backdropView.alpha = getBackdropAlpha(for: state)
217-
}
218-
219213
if let contentOffset = contentOffset {
220214
scrollView?.contentOffset = contentOffset
221215
}
216+
217+
backdropView.alpha = getBackdropAlpha(for: state)
218+
222219
}
223220

224221
private func updateLayout(to target: FloatingPanelState) {

0 commit comments

Comments
 (0)