PopupController
PopupController copied to clipboard
How to dismiss the pop up inside it?
I use self.dismiss function but the parent viewcontroller is dismissed
I added following code as a hack in sizeforPopup method before returning popup size
closeHandler = { popupController.dismiss() }
Optionally you can edit PopupController.swift and add one more protocol maybe setCloseHandler(_ popupController: PopupController) if you want to perform more actions along with close popup.