Yasir Arefin Tusher
Yasir Arefin Tusher

Reputation: 352

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

Upvotes: 4

Views: 2122

Answers (2)

Md. Shafiul Alam
Md. Shafiul Alam

Reputation: 39

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

Upvotes: 4

Tanjila Nur
Tanjila Nur

Reputation: 106

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!

Upvotes: 2

Related Questions