手动呈现 PHPickerViewController 时如何显示当前选定的照片?

JKo*_*oko 6 ios swift photokit ios14 phpickerviewcontroller

有没有办法在手动呈现时显示用户当前的照片选择PHPickerViewController?例如,使用以下代码时,选择器不会显示用户当前选择的任何照片。

 var pickerConfig = PHPickerConfiguration()
 pickerConfig.selectionLimit = 0
 pickerConfig.filter = .any(of: [.images])
            
 let imagePicker = PHPickerViewController(configuration: pickerConfig)
 imagePicker.delegate = self

 // When presented, the user's current selected photos are empty, nothing is selected
 viewController.present(imagePicker, animated: true)
Run Code Online (Sandbox Code Playgroud)

但是,如果我使用苹果的内置presentLimitedLibraryPicker功能,它确实会显示用户当前的照片选择:

// This does show the user's current selections
PHPhotoLibrary.shared().presentLimitedLibraryPicker(from controller: self)
Run Code Online (Sandbox Code Playgroud)

有没有办法在不使用的情况下获得这种行为presentLimitedLibraryPicker