Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camera Permission on SwiftUI- Xcode 14.2

I have created a SwiftUI project. I need to add privacy for camera permission in info.plist file. But in my project there is no info.plist available. How do I achieve camera permission on it?

Here is my project Screenshot,

enter image description here

like image 559
Yasir Arefin Tusher Avatar asked Sep 02 '25 14:09

Yasir Arefin Tusher


2 Answers

You can always find plist file by clicking the marked section on the picture. (whether it is a SwiftUI project or UIKit project)

Screenshot of project file

Screenshot

like image 170
Md. Shafiul Alam Avatar answered Sep 05 '25 05:09

Md. Shafiul Alam


Do the following to find the info.plist to add the necessary keys for the privacy of camera permission in your SwiftUI project.

At first click on the Barcode_Scanner enter image description here

Now, Under the TARGETS click on your app and then click on Info.

enter image description here

You should be able to achieve now what you wanted to. Thanks!

like image 40
Tanjila Nur Avatar answered Sep 05 '25 04:09

Tanjila Nur