requestContentEditingInput

Calling this function for getting image url on iphone 12 is not working (never gets into the completion handler), works on other devices

autoreleasepool{
        results.enumerateObjects { (asset, i, ) in
          DispatchQueue.global(qos: .background).sync{
            autoreleasepool{
              self.getUrlFromAsset(asset: asset){ url in
                if let url = url {
                  print(input.fullSizeImageURL,info)
                }
              }
            }
          }
        }
      }

func getUrlFromAsset(asset: PHAsset,completionHandler:@escaping(URL?) -> ()){
      asset.requestContentEditingInput(with: PHContentEditingInputRequestOptions()) { (input,
) in
        if let input = input, let imageUrl = input.fullSizeImageURL{
          completionHandler(imageUrl)
        }else{
        completionHandler(nil)
        }
      }
  }
requestContentEditingInput
 
 
Q