I have an array of images that you scroll through by clicking a button. I migrated to Swift 4 today and now instead of remaining on the same page and scrolling through the images, it switches back to the home tab when the button is clicked. It was working fine in Swift 3. Here is the code, can't find anything on SO regarding how to fix it in Swift 4.
@IBAction func noBtn_clicked(_ sender: UIButton) {
self.index = (self.index >= self.circleArray.count-1) ? 0 : self.index+1
self.swipeImageView.image = circleArray[index] //imageView
}
When the button is clicked it goes to another page instead of remaining on the page and going to the next image.