mirror of
https://gitee.com/farsunset/cim.git
synced 2025-06-17 07:35:25 +08:00
23 lines
413 B
Swift
23 lines
413 B
Swift
//
|
|
// BlurView.swift
|
|
// CIMApp (macOS)
|
|
//
|
|
// Created by FeiYu on 2021/10/15.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct BlurView: NSViewRepresentable {
|
|
|
|
|
|
func makeNSView(context: Context) -> NSVisualEffectView {
|
|
let view = NSVisualEffectView()
|
|
view.blendingMode = .behindWindow
|
|
return view
|
|
}
|
|
|
|
func updateNSView(_ nsView: NSVisualEffectView, context: Context) {
|
|
|
|
}
|
|
}
|