Open mhmdzaid opened 3 years ago
you can implement didTap gesture and get the current page :
on viewDidLoad add the following code :
let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(ProductDetailsViewController.didTap))
slideShow.addGestureRecognizer(gestureRecognizer)
@objc func didTap() {
// you can put your click action here for the images
let currentPage = slideShow.currentPage // you can get the current index for the image of slider
}
I need to perform action on clicking on each image , so I am asking if there is a way for doing this ? @zvonicek
I need to perform action on clicking on each image , so I am asking if there is a way for doing this ? @zvonicek