hyperoslo / Lightbox

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

Strat with specific index #268

Open Aizaz-Abbasi opened 3 years ago

Aizaz-Abbasi commented 3 years ago

On click of preview button I want o start it with specific index.

3lvis commented 3 years ago

Hello @Aizaz-Abbasi, this project is in maintenance mode, meaning I'll focus on updating it for newer Swift and Xcode versions. New features and fixes will have to come from the community. Thank you.

alexandrgl commented 3 years ago

@Aizaz-Abbasi It seems to me this question is the same as yours - https://github.com/hyperoslo/Lightbox/issues/266

Aizaz-Abbasi commented 3 years ago

@Aizaz-Abbasi It seems to me this question is the same as yours - #266 I did in this way

let controller = LightboxController(images: images) controller.goTo(4)

jan-ekholm commented 3 years ago

Isn't this available by simply doing: let controller = LightboxController(images: images, startIndex: 4)

Aizaz-Abbasi commented 3 years ago

Isn't this available by simply doing: let controller = LightboxController(images: images, startIndex: 4)

I tried but not working fine in my scenario.