rechsteiner / Parchment

A paging view with a highly customizable menu ✨
MIT License
3.39k stars 419 forks source link

Using UIAlertController in per Item #689

Closed r0otx closed 9 months ago

r0otx commented 1 year ago

If I use UIAlertController and call his, I'm show message in console:

[Presentation] Presenting view controller <UIAlertController: 0x125840a00> from detached view controller <_TtGC5example13StatsVCCS_19StatsViewImpl_: 0x1255390f0> is discouraged.

If I call AlertController 4-5 times on different views then my app crashes:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally a view controller <UIAlertController: 0x12585f800> that is already being presented by <Parchment.PagingViewController: 0x12704f000>.'

Many thanks in advance for your help, this is a great plugin that solves my problem!

rechsteiner commented 1 year ago

Hi @r0otx! I'm not sure this is related to Parchment. It sounds like this is something specific to your app, so maybe you can look into reducing bug into a minimal reproduction case.

r0otx commented 1 year ago

I'm use Coordinator pattern in my app, maybe it's crash my view controller.

rechsteiner commented 9 months ago

I'll close this issue for now, but let me know if you still think this is an issue with Parchment