From 1b52b9c5bbae11b921d9bd875eb7df6fc812b13d Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Fri, 11 Oct 2024 10:28:03 -0700 Subject: [PATCH] Open the correct image picker. Summary: Currently the camera roll image picker apperar the first time the camera button is tapped. Differential Revision: D64251492 --- .../apple_ios/LLaMA/LLaMA/Application/ContentView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift index 00fc4f6f541..69ece27f670 100644 --- a/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift +++ b/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift @@ -176,6 +176,7 @@ struct ContentView: View { .padding([.leading, .trailing, .bottom], 10) .sheet(isPresented: $isImagePickerPresented, onDismiss: addSelectedImageMessage) { ImagePicker(selectedImage: $selectedImage, sourceType: imagePickerSourceType) + .id(imagePickerSourceType.rawValue) } } .navigationBarTitle(title, displayMode: .inline)