Skip to content

Commit 4bddf01

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Open the correct image picker. (#6171)
Summary: Pull Request resolved: #6171 Currently the camera roll image picker apperar the first time the camera button is tapped. Reviewed By: kirklandsign Differential Revision: D64251492 fbshipit-source-id: 5bcc77d6716b61b77dbaf556f833d9686b281211
1 parent e28cb76 commit 4bddf01

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)