diff --git a/ios/Platform/Platform/Features/Assistant/AssistantChatView.swift b/ios/Platform/Platform/Features/Assistant/AssistantChatView.swift index 77ee4dc..68852de 100644 --- a/ios/Platform/Platform/Features/Assistant/AssistantChatView.swift +++ b/ios/Platform/Platform/Features/Assistant/AssistantChatView.swift @@ -87,10 +87,12 @@ struct AssistantChatView: View { // Input bar HStack(alignment: .bottom, spacing: 10) { Menu { - Button { - showCamera = true - } label: { - Label("Take Photo", systemImage: "camera") + if UIImagePickerController.isSourceTypeAvailable(.camera) { + Button { + showCamera = true + } label: { + Label("Take Photo", systemImage: "camera") + } } Button { diff --git a/ios/Platform/Platform/Info.plist b/ios/Platform/Platform/Info.plist index 8ea01b7..450327d 100644 --- a/ios/Platform/Platform/Info.plist +++ b/ios/Platform/Platform/Info.plist @@ -6,5 +6,7 @@ ITSAppUsesNonExemptEncryption + NSCameraUsageDescription + Take a photo of your meal to log it with AI