Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Added required Info.plist keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnygauran committed Aug 16, 2017
1 parent 4fbc52b commit 139a1d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ ALCameraViewController is available on CocoaPods. Add the following to your Podf
pod 'ALCameraViewController'
```

### Privacy (iOS 10) ###
If you are building your app with iOS 10 or newer, you need to add two privacy keys to your app's `Info.plist` to allow the usage of the camera and photo library, or your app will crash.

Add the keys below to the `<dict>` tag of your `Info.plist`, replacing the strings with the description you want to provide when prompting the user:

```
<key>NSPhotoLibraryUsageDescription</key>
<string>Enable Photos access to import photos from your library.</string>
<key>NSCameraUsageDescription</key>
<string>Enable Camera to take photos.</string>
```

### Usage

To use this component couldn't be simpler.
Expand Down

0 comments on commit 139a1d0

Please sign in to comment.