I'm relatively new to SwiftUI, but wanted to report it in case someone hits it and see if my solution makes sense. I'm using this library in a LazyVStack, and I was seeing hangs while rendering, which I tracked down to all the elements rendering on initial render, then re-rendering lazily as expected on subsequent renders. This seems to be caused by the Flow starting out with no intrinsic height and calculating it after the first render with a GeometryReader. I was able to work around it by having a minimum height, currently based off of the estimated value of a single line of text: .frame(minHeight: UIFont.preferredFont(forTextStyle: .body).pointSize). Curious if this approach makes sense or if I'm misusing it somehow.
I'm relatively new to SwiftUI, but wanted to report it in case someone hits it and see if my solution makes sense. I'm using this library in a LazyVStack, and I was seeing hangs while rendering, which I tracked down to all the elements rendering on initial render, then re-rendering lazily as expected on subsequent renders. This seems to be caused by the Flow starting out with no intrinsic height and calculating it after the first render with a GeometryReader. I was able to work around it by having a minimum height, currently based off of the estimated value of a single line of text:
.frame(minHeight: UIFont.preferredFont(forTextStyle: .body).pointSize). Curious if this approach makes sense or if I'm misusing it somehow.