PopupDialog icon indicating copy to clipboard operation
PopupDialog copied to clipboard

Custom View Controller not appearing

Open destinybonavita opened this issue 4 years ago • 1 comments

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.

  • Xcode version (e.g. 9.1): ℹ 12.2 (12B45b)
  • PopupDialog version (e.g. 0.5.0): ℹ pod 'PopupDialog', '~> 1.1'
  • Minimum deployment target (e.g. 9.0): ℹ 13.0
  • Language (Objective-C / Swift): ℹ Swift
  • In case of Swift - Version (e.g. 4): ℹ 5

Dependency management

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

  • Dependency manager (e.g. CocoaPods): ℹ CocoaPods
  • Version (e.g. 1.3.1): ℹ Not sure how to retrieve

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

destinybonavita avatar Nov 26 '20 19:11 destinybonavita

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

Fando avatar Jan 07 '21 07:01 Fando