You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
invalidateLayout() is not actually getting new layout object from delegate.
Documentation says:
Updates the layout object from the delegate and lays out the views managed
by the controller immediately.
This method updates the FloatingPanelLayout object from the delegate and
then it calls layoutIfNeeded() of the root view to force the view
to update the layout immediately. It can be called in an
animation block.
But based on the code and behaviour looks like that only constraints are updated, but new layout object is not asked from the delegate.
Thank you so much for your mention. I will fix the method as following the doc comment. invalidateLayout() will reload the func floatingPanel(_ vc:layoutFor:) -> FloatingPanelLayout.
Description
invalidateLayout()
is not actually getting new layout object fromdelegate
.Documentation says:
But based on the code and behaviour looks like that only constraints are updated, but new layout object is not asked from the delegate.
Expected behavior
One of the following delegate methods is called
Actual behavior
Delegate methods are not called
Steps to reproduce
Code example that reproduces the issue
How do you display panel(s)?
How many panels do you displays?
Environment
Library version:
2.5
Installation method:
iOS version(s)
15.1
Xcode version
13.1
The text was updated successfully, but these errors were encountered: