FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

How to close the panel?

Open Martifan opened this issue 3 years ago • 4 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

https://user-images.githubusercontent.com/7662702/190336045-3dcb14fd-424e-47c2-b87c-bf67c7cbc7b8.mp4

Martifan avatar Sep 15 '22 07:09 Martifan

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

scenee avatar Sep 16 '22 12:09 scenee

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

Martifan avatar Sep 18 '22 08:09 Martifan

hello why closed?

Martifan avatar Sep 20 '22 10:09 Martifan

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

scenee avatar Oct 16 '22 12:10 scenee