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

Custom View Controller not appearing #358

Open destinybonavita opened 4 years ago

destinybonavita commented 4 years ago

Report

Trying to add a custom ViewController to add a TextField is not working as expected. I followed this example but the "RATE THIS APP" is showing on top of the buttons and isn't showing the TextField at all.

let viewController = JoinViewController(nibName: "JoinViewController", bundle: nil)

            let popup = PopupDialog(viewController: viewController, 
buttonAlignment: .horizontal, 
transitionStyle: .bounceDown, 
tapGestureDismissal: true, 
panGestureDismissal: false)

            popup.addButton(DefaultButton(title: "Join Random", action: nil))
            popup.addButton(CancelButton(title: "Cancel", action: nil))
            self.present(popup, animated: true, completion: nil)

Environment

Please provide information on your development environment, so we can build with the same scenario.

Dependency management

If you are not using any dependency managers, you can remove this section.

What did you do?

Filled out above

What did you expect to happen?

Filled out above

What happened instead?

Filled out above

Project that demonstrates the issue

Filled out above

Fando commented 3 years ago

Possible solution to your problem: https://github.com/Orderella/PopupDialog/issues/362#issuecomment-755947344