First Let me say that I have really enjoyed using this! I love the ability to drag around a popover!
I just wanted to add that I am using version 0.8.2, and this is a kind of simple fix to allow the contentViewController to be aware it will be dismissed!
I can add this in for you, no problem! I am using PanelKit in one of my projects that is also using obj-c pods so I had to download the master manually include it in my project so my Cocoapods didn't clash, but overall this is great.
`extension PanelManager where Self: UIViewController {
func close(_ panel: PanelViewController) {
if (panel.contentViewController != nil) {
panel.contentViewController!.viewWillDisappear(true)
}
panel.view.removeFromSuperview()
panel.contentViewController?.didUpdateFloatingState()
if panel.isPinned {
didDragFree(panel)
}
}
First Let me say that I have really enjoyed using this! I love the ability to drag around a popover!
I just wanted to add that I am using version 0.8.2, and this is a kind of simple fix to allow the contentViewController to be aware it will be dismissed!
I can add this in for you, no problem! I am using PanelKit in one of my projects that is also using obj-c pods so I had to download the master manually include it in my project so my Cocoapods didn't clash, but overall this is great.
`extension PanelManager where Self: UIViewController {
}`