NYTPhotoViewer
NYTPhotoViewer copied to clipboard
Cannot swipe between images
If I provide
let dataSource = NYTPhotoViewerArrayDataSource(photos: photos)
let photosViewController = NYTPhotosViewController(dataSource: dataSource, initialPhotoIndex: 0, delegate: nil)
I cannot swipe between photos, as there is only one view controller in the created view controller. I would expect to be able to swipe to change photos if there are more than one
same issue, did you make any headway?
Me too, has any solution?
@hughbe @KwanAtFoursquare @AlexHrom
Make sure you have a strong reference to the view controller. it may happen if you only do
let controller = NYTPhotosViewController(...) self.present(controller ...)
try have an instance variable that
self.presented = controller
@odaeagle not helped
Try to use strong reference for the Data Source.