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
iOS 16: App freezes and hangs when trying to build WrappingHStack content #29
Comments
This happens to me as well. I had the WrappingHStack in a ScrollView, and when it scrolled into view the app froze entirely. Since iPadOS does not yet have an upgrade to 16 available, it works fine on iPads but not iPhones. |
iOS 16 has introduced the https://developer.apple.com/documentation/swiftui/custom-layout |
@SetSailSwift I'm still supporting, but currently I don't have a lot of spare time. I am removing my assignments to let anyone willing to help know that there are issues and that nobody is working on them at the moment. |
@dkk Understood. Thanks for clarifying! |
It looks like its an issue with The loop only occurs when a parent GeometryReader |
One last note, it looks like swapping from |
Closing for now, if you still have this issues 2.2.3, please reopen. |
Describe the bug
When scrolling through items that contain a WrappingHStack instance in the component, our app freezes but never crashes. This is due to the main thread getting clogged up when trying to create a WrappingHStack for our component.
To Reproduce
Use a WrappingHStack instance in component, adding that component into a scroll view.
Try to scroll through items on iOS 16 device.
Expected behavior
Should be able scroll through feed without freezing.
Screenshots
Thread Capture
Line in InternalWrappingHStack that appears to be clogging thread:
In the below give, the tags in each card is contained in a WrappingHStack instance:
Context:
Additional context
Appears to be related to issues #27 & #28.
The text was updated successfully, but these errors were encountered: