Post

Replies

Boosts

Views

Created

PHPickerViewController preselectedAssetIdentifiers issue
noticed that when I use PHPickerViewController in iOS26, preselectedAssetIdentifiers not working. It doesn't pre-select an image. This is the code snapshot how I use it with UIViewControllerRepresentable Same code works in iOS18 but not iOS26 func makeUIViewController(context: Context) -> UIViewController { var configuration = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared()) configuration.filter = .images configuration.selectionLimit = 5 configuration.preselectedAssetIdentifiers = ["some id from previous selected results"] let imagePicker = PHPickerViewController.init(configuration: configuration) imagePicker.delegate = context.coordinator return imagePicker }
2
2
182
1w
PHPickerViewController preselectedAssetIdentifiers issue
noticed that when I use PHPickerViewController in iOS26, preselectedAssetIdentifiers not working. It doesn't pre-select an image. This is the code snapshot how I use it with UIViewControllerRepresentable Same code works in iOS18 but not iOS26 func makeUIViewController(context: Context) -> UIViewController { var configuration = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared()) configuration.filter = .images configuration.selectionLimit = 5 configuration.preselectedAssetIdentifiers = ["some id from previous selected results"] let imagePicker = PHPickerViewController.init(configuration: configuration) imagePicker.delegate = context.coordinator return imagePicker }
Replies
2
Boosts
2
Views
182
Activity
1w