NSPhotoLibraryUsageDescription key was introduced in iOS 10. This key should be included in all iOS project if the app is accessing the user’s photo library. In this post, I will show you how to add this key to an XCode project.
We need to add NSPhotoLibraryUsageDescription in the info.plist file. Follow the below steps for that :
Click on the root file and click on the Info tab.
Expand the Custom iOS Target Properties tab.
Right-click on any key row and click on Add Row.
The value of the key will be shown as a description of the popup shown to the user. So, write the value describing why your application needs access to the photo library.