This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MainThreadGuard.m | |
// Honor | |
// | |
// Created by Ben Gottlieb on 2/28/17. | |
// Copyright © 2017 Ben Gottlieb. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
public struct VisualEffectBackground: NSViewRepresentable { | |
var material: NSVisualEffectView.Material = .contentBackground | |
var blendingMode: NSVisualEffectView.BlendingMode = .behindWindow | |
var isEmphasized = false | |
public init(material: NSVisualEffectView.Material = .contentBackground, blendingMode: NSVisualEffectView.BlendingMode = .behindWindow, emphasized: Bool = false) { | |
self.material = material | |
self.blendingMode = blendingMode |