Closed joeycarmello closed 4 years ago
Thanks for reporting the bug @joeycarmello - this is a regression of an old bug in SwiftUI, so I have reinstated an old workaround in 1.7.1. Should now be working 🎉
Bug: SwiftUI isn't calling viewDidAppear when we nest a UIViewControllerRepresentable inside a scrollView.
Awesome. I can confirm 1.7.1 fixed it. Thank you!
Describe the bug
I'm attempting to use the tags example from the demo in a simple ScrollView. The demo renders successfully without the ScrollView, but renders nothing at all when embedded within a ScrollView. I've tried variations of settings explicit frames on the collection view and items.
To Reproduce
Minimal example preview:
Expected behaviour
The collection view should render correctly within a ScrollView using self-sizing items.
Screenshots
Without ScrollView:
Xcode Version:
Simulator, Device, Both?