Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Run code when panel will close #23

Open
Kamik423 opened this issue Apr 26, 2018 · 3 comments
Open

Run code when panel will close #23

Kamik423 opened this issue Apr 26, 2018 · 3 comments

Comments

@Kamik423
Copy link

Is there any way of executing code when a panel closes? I tried overriding different methods I can see in the open source code, but most are in extensions and so not overridable. I tried overriding viewWillDisappear, which gets called every time a panel pins/floats/unpins. I also tried adding a custom done button, however that one got removed and replaced with the PanelKit one.

Is there a way to run code when the close button gets pressed, or could you add that functionality?

@louisdh
Copy link
Owner

louisdh commented Apr 27, 2018

It would probably make sense to add some functions to a delegate regarding panelDidClose or panelDidFloat. Good idea!

@kbilyk
Copy link

kbilyk commented Apr 30, 2018

@louisdh I've faced same issue as I need to update selected state of button that called panel if panel was closed using "Close" button inside panel.

What is ETA for this feature? If you need help, please ping me I might contribute.

@omiz
Copy link

omiz commented Jan 14, 2019

I added this pull request to manage the appearance of the panel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants