Skip to content

Commit

Permalink
Merge pull request #159 from MohamedRejeb/0.5.x
Browse files Browse the repository at this point in the history
Remove iOS 15.0+ PHPickerConfiguration APIs
  • Loading branch information
MohamedRejeb authored Aug 20, 2024
2 parents f18b561 + 0b5bec2 commit 3f31906
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 3f31906

Please sign in to comment.