does simulator accurately reflect translucent UIs?

Im building a macOS application where the UI is a blurry transparent background that is somewhat see through like what apple uses for the macOS control center and I'm using the NSVisualEffectView from AppKit to do so. My question is, does the Xcode simulator accurately portray translucent UI views? in other words: "what you see is what you get" or will the vibrancy be more pronounced when the app is run on my machine itself.

    
    var material: NSVisualEffectView.Material = .contentBackground         //blurry background to cover the whole UI
    var blendUI: NSVisualEffectView.BlendingMode = .behindWindow           // applying the blurry background to the UI window itself
    var allowsVibrancy: Bool = true
    
    
    func makeNSView(context: Context) -> NSVisualEffectView {
        let blurryEffectView = NSVisualEffectView()
        
        blurryEffectView.material = material
        blurryEffectView.blendingMode = blendUI
        
        return NSVisualEffectView()
    }
        
        func updateNSView(_ nsView: NSVisualEffectView, context: Context) {    // _ added, no argument label needed
            nsView.material = .contentBackground
            nsView.blendingMode = blendUI
        }
    }


struct ContentView: View {
var body: some View {
        
        ZStack{
            
            EffectView(material: NSVisualEffectView.Material.contentBackground, blendUI: NSVisualEffectView.BlendingMode.behindWindow )
          
        }
   
   }
}
Answered by Frameworks Engineer in 800833022

Yes, materials displayed in Xcode Previews should appear the same as in your app at runtime. They're using the same rendering technologies in both cases.

What simulator are you speaking about ? There is no simulator for Mac apps, it is directly the app running on the Mac. So, do you mean Preview ?

Accepted Answer

Yes, materials displayed in Xcode Previews should appear the same as in your app at runtime. They're using the same rendering technologies in both cases.

does simulator accurately reflect translucent UIs?
 
 
Q