[Uno] Default Opaque to false for SKXamlCanvas on MacOS and iOS - #2398
Conversation
| #if MACOS | ||
| Opaque = false; | ||
| #endif |
There was a problem hiding this comment.
This is actually incorrect for macOS. There is no Opaque property, but rather IsOpaque. However, this other property is read only and according to the docs you should override the property to return the value you want:
The default value of this property is false to reflect the fact that views do no drawing by default. Subclasses can override this property and return true to indicate that the view completely covers its frame rectangle with opaque content. Doing so can improve performance during drawing operations by eliminating the need to render content behind the view.
https://developer.apple.com/documentation/appkit/nsview/1483558-isopaque
There was a problem hiding this comment.
oops sorry about that ! I thought I tested it :/
Description of Change
See canvas default opacity to none on mac and iOS to align on other platforms.
Bugs Fixed
API Changes
None.
Behavioral Changes
By default, canvas will be transparent instead of black.
Required skia PR
None.
PR Checklist