mwaterfall / MWPhotoBrowser

A simple iOS photo and video browser with grid view, captions and selections.
MIT License
8.75k stars 2.72k forks source link

How to make single image selection only? #569

Open ZaidPathan opened 7 years ago

ZaidPathan commented 7 years ago

@mwaterfall displaySelectionButtons is now showing image selection, but I'm unable to figure our how to make only single image selection enable. Ex: If user selection image 1 then all other images should be unselected. Is there a way?

I tried
func photoBrowser(_ photoBrowser: MWPhotoBrowser!, photoAt index: UInt, selectedChanged selected: Bool)
and
func photoBrowser(_ photoBrowser: MWPhotoBrowser!, isPhotoSelectedAt index: UInt) -> Bool
but it didn't help me out.

Mushrankhan commented 7 years ago

Hello @ZaidPathan , Have you found any way to select only one image ?