Orderella / PopupDialog

A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
http://www.mwfire.de
Other
3.96k stars 522 forks source link

UIView instead of UIButton #306

Closed alexisbar closed 5 years ago

alexisbar commented 5 years ago

Hello !

I was wondering if there was an easy way to add an UIView to the stackView instead of a subclass of PopupDialogButton. I need some padding and shadow around my UIButton. Something like this :

Capture d’écran 2019-04-03 à 14 18 12

Thanks for this amazing lib. It's saving me a lot of time ✌️

alexisbar commented 5 years ago

I did It by adding my UIStackView into my custom popup controller. I do not add any buttons. Best I found.

mwfire commented 5 years ago

Hey there! Yeah, that's currently how to achieve this. You have full access to PopupDialog from your custom view controller if you hold a (weak) reference to the PopupDialog in your custom view controller. Hope that works for you :)