Skip to content

Commit

Permalink
Call floatingPanelWillRemove when a panel removes from a window
Browse files Browse the repository at this point in the history
  • Loading branch information
scenee committed Aug 20, 2023
1 parent a13d053 commit 9da54f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ open class FloatingPanelController: UIViewController {
} else if parent != nil {
removePanelFromParent(animated: true)
} else {
delegate?.floatingPanelWillRemove?(self)
hide(animated: true) { [weak self] in
guard let self = self else { return }
self.view.removeFromSuperview()
Expand Down

0 comments on commit 9da54f9

Please sign in to comment.