From f816f0c73ca31e1a2cf43ed14070a39ac6e9c63e Mon Sep 17 00:00:00 2001 From: Asperi <62171579+Asperi-Demo@users.noreply.github.com> Date: Wed, 17 Aug 2022 19:24:32 +0300 Subject: [PATCH] Update PostViewController.swift fixes background and button taps --- ReproducingiOS16PopUpControllerBug/PostViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReproducingiOS16PopUpControllerBug/PostViewController.swift b/ReproducingiOS16PopUpControllerBug/PostViewController.swift index 40552c5..f0a6557 100644 --- a/ReproducingiOS16PopUpControllerBug/PostViewController.swift +++ b/ReproducingiOS16PopUpControllerBug/PostViewController.swift @@ -34,6 +34,8 @@ class PostViewController: UIViewController, UIGestureRecognizerDelegate, UITextF let popover = FlagPopUpController(delegateController: self) popover.presentationController?.delegate = self popover.displayFlagPopUp() + self.addChild(popover) + popover.didMove(toParent: self) }else{ func flagReasonChosen(choice:String?){ print("flagged")