Skip to content
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

FB14157778: NavigationLink inside List results in terrible scroll stuttering #538

Open
insidegui opened this issue Jul 1, 2024 · 0 comments

Comments

@insidegui
Copy link

  • Date: 2024-07-01
  • Resolution: Open
  • Area: SwiftUI
  • OS: macOS 15 Beta 2
  • Type: Incorrect/Unexpected Behavior
  • Keywords: SwiftUI, List, NavigationLink

Description

When a SwiftUI List with a significant amount of items has a NavigationLink representing each one of the items, scrolling stutters.

Please see the attached video and sample project to understand the issue more clearly, but to sum it up, this works fine:

List(items) { item in
    Text(item.id)
}

This results in terrible stuttering with CPU usage pegged at 100%:

List(items) { item in
    NavigationLink(value: item) {
        Text(item.id)
    }
}

Files

ListBug.mov

ListBug-SampleProject.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant