mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
395 B
Swift
17 lines
395 B
Swift
// RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.15 -swift-version 5 -c %s
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: OS=macosx
|
|
|
|
import SwiftUI
|
|
|
|
struct DropDestinationCoordinatorView: NSViewRepresentable {
|
|
func makeNSView(context: Context) -> some NSView {
|
|
return NSView()
|
|
}
|
|
|
|
func updateNSView(_ nsView: NSViewType, context: Context) {
|
|
print("for view: \(nsView)")
|
|
}
|
|
}
|
|
|