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

Commit bc8e041

Browse files
Merge pull request #209 from sonnygauran/master
Added required Info.plist keys
2 parents 4fbc52b + 139a1d0 commit bc8e041

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ ALCameraViewController is available on CocoaPods. Add the following to your Podf
2424
pod 'ALCameraViewController'
2525
```
2626

27+
### Privacy (iOS 10) ###
28+
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.
29+
30+
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:
31+
32+
```
33+
<key>NSPhotoLibraryUsageDescription</key>
34+
<string>Enable Photos access to import photos from your library.</string>
35+
<key>NSCameraUsageDescription</key>
36+
<string>Enable Camera to take photos.</string>
37+
```
38+
2739
### Usage
2840

2941
To use this component couldn't be simpler.

0 commit comments

Comments
 (0)