Skip to content

Commit 1b52b9c

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Open the correct image picker.
Summary: Currently the camera roll image picker apperar the first time the camera button is tapped. Differential Revision: D64251492
1 parent e28cb76 commit 1b52b9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ struct ContentView: View {
176176
.padding([.leading, .trailing, .bottom], 10)
177177
.sheet(isPresented: $isImagePickerPresented, onDismiss: addSelectedImageMessage) {
178178
ImagePicker(selectedImage: $selectedImage, sourceType: imagePickerSourceType)
179+
.id(imagePickerSourceType.rawValue)
179180
}
180181
}
181182
.navigationBarTitle(title, displayMode: .inline)

0 commit comments

Comments
 (0)