Sorry I just forgot about copying the NSImage instance. I didn't see performance issue loading about 50 resized images into menus in my workspace. Solved.
let nsImage = {
let returnValue = icon.copy() as! NSImage
nsImage.size = CGSize(width: 16, height: 16)
return nsImage
}()
Image(nsImage: nsImage)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: