2

I have a simple view with a list of custom views. The list appears after loading from an API with the following code:

List(viewModel.repositories) { repository in
 SetupRepositoryView(repository)
}

As I scroll, the scrollbar resizes. I think this is something to do with SwiftUI lazily loading the content. Is there any way to refresh the scrollbar view at the start.

SwiftUI list scrollbar resizing

2
  • try by providing minimum height on cell Commented Jun 21, 2023 at 7:59
  • What's your SDK and your test OS version? I have seen this behaving "lazy" in 10.15 and fine in 10.12 with the identical builds. Commented Jun 21, 2023 at 20:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.