I have the same problem.
I'm not sure it is a solution to keep track of the rectangles yourself because the image might need to be drawn for other reasons?
If it's like on Windows, a part of a view might need to be updated because it becomes visible.
Also the draw operation is scheduled and might be called after multiple call to setNeedsDisplay.
Post
Replies
Boosts
Views
Activity
I saw this for macOS Catalyst.
Click attribute inspector, and check Mac. Then you'll be able to add 1024*1024 icon for App Store
Use:
(void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
(void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event