hyperoslo / Lightbox

:milky_way: A convenient and easy to use image viewer for your iOS app
https://www.hyper.no
Other
1.63k stars 329 forks source link

Delete Item Notification #280

Open mhamidg opened 3 years ago

mhamidg commented 3 years ago

This is awesome library to show images.

I am missing the one of the extra functionality, which is more helpful for the developers. If you add the delete Notification (delegate). To delete item notification if you can implement this in function just before deleting the item from "initialImages" collection.

Method: func headerView(_ headerView: HeaderView, didPressDeleteButton deleteButton: UIButton) {

Notification/Delegate: pageDelegate?.lightboxController(self, willDeleteItem: initialImages[prevIndex], at: prevIndex)