Crash on iOS 16 beta 3
Using a WrappingHStack the iOS app on iOS 16 beta 3 will crash.
To reproduce you can open a view with a WrappingHStack inside.
- WrappingHStack version: 2.2.1
- Model: iPad Pro and iPhone XR
- OS: iOS 16 beta 3
Does WrappingHStack still crash on the current iOS 16 beta?
I've swtiched to https://github.com/globulus/swiftui-flow-layout in the meantime, so unfortunately I don't have a project ready to test it
This is still present on the iOS 16 Release Candidate. Looks like any apps that use a WrappingHStack will freeze on iOS 16.
I'm on a trip right now, I will try to fix it when I'm back. I would be happy for some help so we can fix the issue sooner.
Thanks for the update. I will avoid using it in my current app.
FWIW same issue on the public iOS 16 release - crash/freeze seems to happen on this line: https://github.com/dkk/WrappingHStack/blob/3a66fa48441e972d7817c1157d3c0a826e963797/Sources/WrappingHStack/InternalWrappingHStack.swift#L34
This is almost certainly an iOS bug, but I wonder if there are any good workarounds...
I cannot reproduce it, can someone with this problem please share following information:
- Does it happen on device only or device and simulator?
- What devices/simulators have you tested?
- Which Xcode & iOS version where you using?
- Does the example app crash?
- Add a minimal, reproducible example
This is still present on the iOS 16 Release Candidate. Looks like any apps that use a WrappingHStack will freeze on iOS 16.
It does not seem to be an issue on the final iOS 16 release as far as I can tell, in case someone still has an issue, please reopen stating the information from my previous comment
It is happening in our App. So far what I can see is that the closure of GeometryReader in the class WrappingHStack is being called over and over causing the UI to freeze. (Careful, the closure of GeometryReader is being called, not the body of the WrappingHStack struct (which is called the normal amount of times))
Does it happen on device only or device and simulator?
Can't run my project on the simulator because a limitation of one of my dependencies (TensorFlow lite). It is happening on an iPhone 13 Pro with iOS 16.0 (20A362)
What devices/simulators have you tested?
Just one iPhone 13 Pro
Which Xcode & iOS version where you using?
iOS 16.0 (20A362), Xcode 14.0
Does the example app crash?
No
Add a minimal, reproducible example
... Working on it as this is happening in a complex app
It seems this is a minimum reproducible example: https://github.com/dkk/WrappingHStack/issues/26