PPAssetsActionController
PPAssetsActionController copied to clipboard
Introduce new callback in PPAssetsActionControllerDelegate for when PPOption was selected
Introduce new callback in PPAssetsActionControllerDelegate
:
func assetsPicker(_ picker: PPAssetsActionController, didPickOption option: PPOption);
Please help me more detail with this function. I want to change default text, and maximum number of picture = 1 example: default text = Select Picture and when user select one picture than change the text to "OK"
Hey @dinhcuong1989 thanks for getting in touch,
From what I understand you want two things:
- Limit max number of selected assets;
- Change text on default cell ('OK' instead of 'Send X Item(s)') depending on whether asset was selected or not.
I've tracked these requests as a separate tickets: #32 and #33.
This ticket is just a callback for when any of PPOption
s was selected.
I can't give you an ETA on this requests, since I don't have much free time at the moment.
If you want to contribute, you're very welcome. Just open a PR and we can discuss, feel free to reach out in respective tickets if you have any questions or need any help. 👍