[SwiftUI Workaround Required] Unable to change colour of NSPopover arrow. - liweiyap/text-popover-macOS GitHub Wiki
I've tried the following methods:
.background(GeometryReader { geometry in
Color
.black.edgesIgnoringSafeArea(.all)
.frame(width: geometry.size.width,
height: geometry.size.height + 100)
.frame(width: geometry.size.width,
height: geometry.size.height,
alignment: .bottom)
})
- Cocoa-centric: wrapping
NSView
inNSViewRepresentable
to interface with SwiftUI
Edit: workaround in commit 63be6e2
is to use only default colours for NSAppearance, e.g. .darkAqua and .aqua. Can check if we could customise our own NSAppearance?
Update (131120): Since macOS Big Sur (v 11.0.1), .darkAqua and .aqua seem to have lost their opaqueness?