Reputation: 352
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,
Upvotes: 4
Views: 2122
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
Upvotes: 4
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
Now, Under the TARGETS click on your app and then click on Info.
You should be able to achieve now what you wanted to. Thanks!
Upvotes: 2