Before iOS 15.2 version we could register PHPhotoLibrary.shared().register(self) without authorization, in iOS 15.2 it is not possible, you will get an error.
You have to request authorization(requestAuthorization(_:)) for register PHPhotoLibrary.shared().register(self).
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: