How can I write a file in a folder located at Apple's Files App in SwiftUI?
问题 I followed the Swift project UsingFiles github and its video to write files in my SwiftUI project. The project UsingFiles can write files to Files APP and then the writing files can be seen in the Files APP. But I followed the code as following, the files cannot be seen in Files APP. let file = "\(UUID().uuidString).txt" let contents = "Some text..." let dir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! let fileURL = dir.appendingPathComponent(file) do { try