Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display two alertVC #91

Closed
Daksh14 opened this issue Aug 1, 2019 · 0 comments
Closed

Display two alertVC #91

Daksh14 opened this issue Aug 1, 2019 · 0 comments

Comments

@Daksh14
Copy link

Daksh14 commented Aug 1, 2019

I want to open another alertVC when you click a button, like a conformation type system. I implemented it like this

alertVC.addAction(PMAlertAction(title: "Delete", style: .default, action: { () in
   let conformation = PMAlertController(title: "Really delete this post?", description: nil, image: nil, style: .alert)
   conformation.addAction(PMAlertAction(title: "Yes", style: .default, action: { () in
      print("Capture action OK")
   }))
   TapticEngine.impact.feedback(.light)
   self.getTopMostViewController()?.present(conformation, animated: false, completion: nil)
}))

This does not work and doesn't show the controller. Any ideas how can I achieve this?

@Daksh14 Daksh14 closed this as completed Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant