Skip to content

Commit

Permalink
πŸ› Ensure the AppcuesUIWindow is fully removed after dismissal
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Nov 8, 2024
1 parent f627f69 commit 47a8140
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ internal class ModalContextManager {

func remove(viewController: UIViewController, completion: (() -> Void)?) {
viewController.dismiss(animated: true) {
// Ensure the window is removed from the hierarchy even if something outside the SDK has a reference to it
self.presentingWindow?.windowScene = nil
self.presentingWindow = nil
completion?()
}
Expand Down

0 comments on commit 47a8140

Please sign in to comment.