scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS
MIT License
5.61k stars 510 forks source link

Floating Panel close automatically after change in PR #551 #561

Closed bvaillant-clgx closed 2 years ago

bvaillant-clgx commented 2 years ago

I'm using the Floating Panel to show a page with lots of informations but since the last update (2.5.3) every times I try to open it the floating panel close itself.

I found out that if I put the line added in the PR #551 in comment, my problem is not there anymore.

My panel are shown modally

I also have special code that dismiss the FloatingPanelController when the state is hidden that I absolutely need. func floatingPanelDidMove(_ fpc: FloatingPanelController) { if fpc.state == .hidden { fpc.dismiss(animated: true, completion: { ... } }) } }

scenee commented 2 years ago

Thank you for this report. I understood the side effect of the code. Let me check one thing. Is your panel's state always .hidden when this problem happens? Because I'm thinking that I will replace it with an assertion.

bvaillant-clgx commented 2 years ago

It is a new panel that I create that I try to open in full or half. I see the panel going to the right position but then it close itself automatically

scenee commented 2 years ago

Thanks. I created iss-561 branch. Could you try it in your app?

bvaillant-clgx commented 2 years ago

Thanks for the quick reply. It is working with your new branch.

scenee commented 2 years ago

Thanks for your confirmation. I'm going to merge the branch into the main line in PR #563.

scenee commented 2 years ago

@bvaillant-clgx I merged iss-561 branch, and then I will release it in the next release, v2.5.4. Thank you so much.