Im getting the errror on the line where it says @Environment. The error is highliting the exportFiles part on that line. Any ideas anyone? A fix will be highly appreciated
Thanks in advance
Thanks in advance
Code Block import SwiftUI import PlaygroundSupport struct ContentView: View { @Environment(\.exportFiles) var exportAction var body: some View { Button("Export Your file") { let url = Bundle.main.url(forResource: "symbols", withExtension: "json")! exportAction(moving: url) {result in switch result { case .success(let url): print("Success! Moved to: /url") } } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } PlaygroundPage.current.setLiveView(ContentView())