SwiftUI: loading images with .fileImporter
问题 Goal is to load 2 different images (image 1 and 2) with the new .fileImporter modifier. Problem is I get the same image loaded to both thumbnails (image 1 and 2). Have anyone managed to do that with .fileImporter modifier? import SwiftUI struct ContentView: View { @State var openFile = false @State var img1 = UIImage() @State var img2 = UIImage() @State var fileName = "" var body: some View { Form { //image 1 Button(action: { self.openFile.toggle() }){ Image(uiImage: self.img1) .renderingMode