skip to Main Content

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

2

Answers


  1. 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!

    Login or Signup to reply.
  2. You can always find plist file by clicking marked section on the picture. (whether it is SwiftUI project or UIKit project)

    screenshot of project file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search