Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to close the panel? #568

Open
Martifan opened this issue Sep 15, 2022 · 4 comments
Open

How to close the panel? #568

Martifan opened this issue Sep 15, 2022 · 4 comments

Comments

@Martifan
Copy link

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
@scenee
Copy link
Owner

scenee commented Sep 16, 2022

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

@Martifan
Copy link
Author

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

@scenee scenee closed this as completed Sep 20, 2022
@Martifan
Copy link
Author

hello why closed?

@scenee
Copy link
Owner

scenee commented Oct 16, 2022

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 scenee reopened this Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants