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

ReloadItem() may cause a hang #2

Open
hk05 opened this issue Aug 5, 2022 · 0 comments
Open

ReloadItem() may cause a hang #2

hk05 opened this issue Aug 5, 2022 · 0 comments

Comments

@hk05
Copy link

hk05 commented Aug 5, 2022

ReloadItem() may cause problems (i.e. hang on large number of items).
Instead of ReloadItem(), use reloadData(forRowIndexes:columnIndexes:)

Motivation

OutlineView.swift, line 49 -> reloadItem()
This code may cause a hang (spinning wheel).

Desired solution

Replace line 49, reloadItem() with:
reloadData(forRowIndexes: IndexSet(integer: row(forItem: item)), columnIndexes: IndexSet(0 ..< numberOfColumns))

Considered alternatives

Additional context

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