PopupController
PopupController copied to clipboard
dismiss from inside the controller
How can i dismiss the popup when the user taps a button inside the viewcontroller.
i tried dismis but not working as its not a viewcontrollers method, its a popupcontroller method.
I am facing the same issue, @antonioreyna , did you find the solution?
Inside viewcontroller var popup = PopupController()
func sizeForPopup(_ popupController: PopupController, size: CGSize, showingKeyboard: Bool) -> CGSize { popup = popupController return CGSize(width: 300, height: 500) } //-------------- //---Use button event
popup.dismiss()