PopupController icon indicating copy to clipboard operation
PopupController copied to clipboard

dismiss from inside the controller

Open antonioreyna opened this issue 9 years ago • 2 comments

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.

antonioreyna avatar Aug 16 '16 11:08 antonioreyna

I am facing the same issue, @antonioreyna , did you find the solution?

brianhu avatar Jan 11 '17 10:01 brianhu

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()

nishuvns avatar Jul 03 '17 05:07 nishuvns