scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backdropAlpha does not change when layout changes without calling invalidateLayout

WillBishop opened this issue · comments

Description

When moving from compact to a regular size class and switching layouts as detailed in the README.md, the backdropAlpha method is not called until the floating panel is interacted with.

Expected behavior

Upon setting a new layout with the layoutFor newCollection method, backdropAlpha would be called and applied.

Actual behavior

It is not called or applied

Steps to reproduce

Open the Maps example project and slide the floating panel to the .full position, note the dimmed backdrop. Now rotate to landscape, and note how the backdrop is still dimmed, until it is interacted with then snaps to 0.

Thank you for your report. I acknowledged this issue and I'm working on iss-572 branch. I'm going to include a bug fix for this issue on 2.5.5.