Although status is .limited, iOS 14 still display all images

Code Block swift
let accessLevel : PHAccessLevel = .readWrite
      let phStatus = PHPhotoLibrary.authorizationStatus(for: accessLevel)
      if (phStatus == .notDetermined) {
        PHPhotoLibrary.requestAuthorization(for: accessLevel) {
          newStatus in
if (newStatus == .limited) {
            var conf = PHPickerConfiguration()
            conf.selectionLimit = 1
            conf.filter = .any(of: [.images, .livePhotos])
            let picker = PHPickerViewController(configuration: conf)
            picker.delegate = self
            self.present(picker, animated: true)
          }
        }
      }


I use above code (with new authorizationStatus and requestAuthorization Api) to test Limited Photo Library.
But although I successfully got .limited status iOS 14 still display entire photo library.
Can anyone help me to solve this?

Unfortunately on beta 4 and earlier, its not working on simulator, only on device.
I ran this code on iPhone 7 device installed iOS 14 beta
but even the status was .limited, iOS 14 still showed
all of images, not my selected images.
is there something wrong with my code?
PHPickerViewController always shows the whole library, but only returns the user's selection back to your app. Your app doesn't need to request permission before presenting PHPickerViewController.
I am running my code on iPhone 11 pro.
I granted permission "Select Photos" and PHAuthorizationStatus is .limited. Also selected some photos.
But when I again open the PHPickerViewController to select photos I get all the photos from my library instead of selected photos.

Code Block
PHAccessLevel level = PHAccessLevelReadWrite;
status = [PHPhotoLibrary authorizationStatusForAccessLevel:level];
switch (status) {
case PHAuthorizationStatusLimited:
PHPickerConfiguration *config = [[PHPickerConfiguration alloc] initWithPhotoLibrary:[PHPhotoLibrary sharedPhotoLibrary]];
config.filter = [PHPickerFilter imagesFilter];
//Unlimited selection by specifying "0"
config.selectionLimit = 0;
     
PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];
pickerViewController.delegate = self;
[self presentViewController:pickerViewController animated:YES completion:nil];
break;
case PHAuthorizationStatusNotDetermined:
[PHPhotoLibrary requestAuthorizationForAccessLevel:(PHAccessLevelReadWrite) handler:^(PHAuthorizationStatus
newStatus) {
dispatch_async(dispatch_get_main_queue(), ^{
if (newStatus == PHAuthorizationStatusLimited){
//TODO
}
});
}];
}

Added following keys:
Code Block
Info.plist
<key>NSCameraUsageDescription</key>
<key>PHPhotoLibraryPreventAutomaticLimitedAccessAlert</key>

Any solution for the above stated issue?
Hi AshwiniC, did you find any solution for this?
Although status is .limited, iOS 14 still display all images
 
 
Q