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

Remove override of performBatchUpdates, it causes warnings for consumers #512

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Nov 20, 2023

There doesn't seem to be a way to represent NS_NOESCAPE in Swift here... Just going to remove this override since it's an entirely internal type anyway.

Checklist

Please do the following before merging:

  • Ensure any public-facing changes are reflected in the changelog. Include them in the Main section.

@kyleve kyleve requested a review from a team November 20, 2023 03:09
override func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil) {
super.performBatchUpdates(updates, completion: completion)
}

func performBatchUpdates(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: It might be worth adding some doc comments to this method since the normal performBatchUpdates will now show up in things like autocomplete results (and might help avoid any accidental invocation).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super worried about this; this method is only called in one place in the entire codebase (by design).

@kyleve kyleve merged commit 4c96b6b into main Nov 22, 2023
4 checks passed
@kyleve kyleve deleted the kve/remove-override branch November 22, 2023 19:28
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

Successfully merging this pull request may close these issues.

2 participants