cruffenach / CRToast

A modern iOS toast view that can fit your notification needs
MIT License
4.17k stars 463 forks source link

Toast won't disappear on ios 11 #221

Closed liukaiyi54 closed 6 years ago

liukaiyi54 commented 7 years ago

I updated my phone to ios 11 beta. And I found that when I display the toast it got stuck on the top and did not go away like it used to. Anyone knows how to solve this?

russellquinn commented 7 years ago

Looks like the UICollisionBehaviorDelegate no longer gets called for the CRToastAnimationTypeGravity. Something changed with Apple's implementation of it.

russellquinn commented 7 years ago

Or something changed in iOS that means CRToast's calculations in inCollisionPoint1 and inCollisionPoint2 are no longer valid.

russellquinn commented 7 years ago

Hmm, I started to dig further into this, then I got a notification that iOS 11 beta 3 was out, I updated my device and it looks like it's fixed!! Weird timing. Can anyone else confirm?

skuske commented 6 years ago

I observed this issue, too, but on 11.0.1, and not all the time. It only seems to appear sometimes. However: any way to fix that?

russellquinn commented 6 years ago

Everything is still working fine for me on 11.0.1. This was only an issue on iOS 11 betas 1 and 2 and happened every time not intermittently. Yours might be a different issue?

liukaiyi54 commented 6 years ago

Everything's working now. Thanks for the reply, really appreciated it.