Post

Replies

Boosts

Views

Activity

Error: No exact matches in call to instance method 'fileExporter'
i get and error on the first line of this code saying Error: No exact matches in call to instance method 'fileExporter' .fileExporter(isPresented: $saveFile, documents: Doc(url: Bundle.main.path(forResource: "Star", ofType: "mp3")!), contentType: .audio) { (res) in do{ let fileUrl = try res.get() print(fileUrl) }catch{ print("cannot save doc") print(error.localizedDescription) } }
0
1
347
Nov ’23
How do you add documents to file folder in swift preview
Hi, I am trying to make an app where a user needs to select a document from the file folder on iphone. I was wonder how do populate this folder with moc documents so that I can preview the functionality on preview and simulator. When i try to drag and drop it does not work and when I try to share file with simulator it does not load it just takes me to the iMessage app in the simulator? Thanks
0
0
151
Nov ’23