Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were invalidly using
visibleRect
where we should have been usingframe
; the former is used if your view is in e.g. a scroll view, and you want to save resources by only rendering the visible part of the view.This is confusing, since
visibleRect
is put under the drawing collection in the documentation, so I've banned it from our codebase usingclippy.toml
to avoid this issue in the future (though that will only take effect after #2982).Fixes #2876
CHANGELOG.md
if knowledge of this change could be valuable to users