在作用域中找不到类型“NSViewRepresentable”
我想用NSViewRepresentable在SwiftUI中创建一个模糊视图,但是XCode给了我一个错误消息,上面说“在scope中找不到类型‘NSViewRepresentable’”。
import SwiftUI
struct BlurWindow: NSViewRepresentable { //Cannot find type 'NSViewRepresentable' in scope
func makeNSView(context: Context) -> NSVisualEf...