Skip to content

Commit

Permalink
Remove iOS 15.0+ PHPickerConfiguration APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Aug 20, 2024
1 parent ad7f9e3 commit 0b5bec2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,10 @@ private fun createPHPickerViewController(
filterList.add(PHPickerFilter.videosFilter())
}
}
val newFilter =
PHPickerFilter.anyFilterMatchingSubfilters(filterList.toList())
val newFilter = PHPickerFilter.anyFilterMatchingSubfilters(filterList.toList())
configuration.filter = newFilter
configuration.preferredAssetRepresentationMode =
PHPickerConfigurationAssetRepresentationModeCurrent
configuration.selection = PHPickerConfigurationSelectionOrdered
configuration.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent
configuration.selectionLimit = if (selectionMode == FilePickerSelectionMode.Multiple) 0 else 1
configuration.preselectedAssetIdentifiers = listOf<Nothing>()
val picker = PHPickerViewController(configuration)
picker.delegate = delegate
return picker
Expand Down

0 comments on commit 0b5bec2

Please sign in to comment.