-
Notifications
You must be signed in to change notification settings - Fork 549
Closed
Labels
documentationThe issue or pull request is about documentationThe issue or pull request is about documentation
Milestone
Description
Apple platform
macOS
Framework version
net9.0-*
Affected platform version
.NET 9
Description
According to the documentation, it should be possible to set a NSImage as the CALayer content, however the .NET bindings require an object of type CGImage
Steps to Reproduce
var layer = new CALayer();
layer.Contents = NSImage.GetSystemSymbol("plus", null);
Did you find any workaround?
yes, but it's quite hacky:
layer.SetValueForKey(NSImage.GetSystemSymbol("plus", null), new NSString("contents)");
Build logs
No response
Metadata
Metadata
Assignees
Labels
documentationThe issue or pull request is about documentationThe issue or pull request is about documentation