-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[_ASDisplayLayer setDelegate:] is not called by UIViews #1595
Comments
Is there any workaround/solution for this? |
Hi, I'm also seeking a workaround. I'm having an issue on iOS 13 where a cell does not properly resize after changing orientation -- seeing in the view debugger that the top |
@rahul-malik Just tested your patch, the issue has been resolved. Thanks very much for finding and fixing that! 💯 |
iOS calls |
UIView should call setDelegate on its backing layer to itself, which happens in iOS 12. But in iOS 13, this does not happen.
Stack in iOS 12:
UICollectionView relies on a delegate call from its layer to trigger a relayout when the frame changes. Since the delegate is not set on _ASDisplayLayer, it never gets the callback.
Example of a stack of the delegate method
being called
The text was updated successfully, but these errors were encountered: