scenee / FloatingPanel

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to close the panel?

Martifan opened this issue · comments

hello everyone, after the update, I had a problem, namely, I can not close the panel correctly

Код выглядит так:

@IBAction func onBtnLanguagesClick(_ sender: Any) {
        languageListFpc.contentMode = .fitToBounds
        languageListFpc.layout = SettingsLanguagesLayout()
        languageListFpc.surfaceView.containerMargins = .zero
        languageListFpc.setAppearanceForPhone()
        languageListFpc.addPanel(toParent: self, animated: true)
        languageListFpc.isRemovalInteractionEnabled = true
        languageListFpc.set(contentViewController: languagesListVC)
        languageListFpc.backdropView.dismissalTapGestureRecognizer.isEnabled = true
        languageListFpc.move(to: .full, animated: true)
}
@IBAction func onBtnCloseClick(_ sender: Any) {
        dismiss(animated: true, completion: nil)
}

The video shows what is happening, please help me, how to solve this problem?
Thanks

bandicam.2022-09-15.10-57-42-937.mp4

Which version do you use? I'm wondering if this issue might be resolved in v2.5.4.

I didn't have this problem on previous versions, this problem appeared after the update. 2.5.3 version everything works fine
problem release version 2.5.4
thanks for your work and for your reply

hello why closed?

I'm sorry I misunderstood your comment. I've reopened this issue. And then let me ask a question. why don't you use removeFromParenet methods?
https://github.com/scenee/FloatingPanel#showhide-a-floating-panel-in-a-view-with-your-view-hierarchy