Custom picker feature implementations

In the WWDC talk about the new embedded photo picker, the presenter says "If you want to implement your own replacement for some picker features, use the ".photosPicker DisabledCapabilities" modifier" (https://developer.apple.com/videos/play/wwdc2023/10107/?time=270). However, he did not demonstrate how to do so.

For example, I want to use the compact version of the photo picker, with the header hidden, and place a custom "Add" button to use instead. Additionally, using any version of the picker, how could I add a button to the toolbar where "add" and "cancel" are? Is it possible to apply styling to the existing toolbar buttons, for instance changing the text color?

Thanks!

Replies

If you only want to change the color of the button, you can just set the tint color of the PhotosPicker view. No other type of customization is currently allowed.

Please submit a Feedback if you want the system Photos picker to support more customization!

You can use .photosPickerDisabledCapabilities and/or .photosPickerAccessoryVisibility modifiers to remove existing picker capabilities (like the navigation bar) and implement your own UI around the system picker UI.