Is it possible to swipe between images in Swift iOS?

How do I enable swipe in webview for iOS?

  • I just need a way to swipe back and forth between pages. Similar to swiping left and right between photos on a camera roll.

  • Answer:

    That's a bit hard to do since the UIWebView already handles touch events (for things like pinch zooming, up/down and left/right scrolling around the page, single taps for navigating links/buttons, etc.).  You can override the UIWebView class with your own class and specifically look for certain touch events while passing the others through to the base UIWebView event handler.  Note that if you override left/right swiping, you'll loose the ability to scroll left and right on a page, which could clearly get annoying, especially if you have zoom enabled (which you have to work at to disable).

Joseph H. Schwendt II at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.