'WkWebview inside uiScrollview

I was wondering if you can help me please. I have a wkWebview that has horizontal paging content.

Outside of that I have a scroll view that also has horizontal paging content.

There is obviously a conflict when scrolling and I was wondering what is best to solve the issue.

I want a continuous scroll that when scrolling on the web view that has a content offset less than 0 I want to scroll the parent scroll view to the page before. When the content offset is greater than the size of the content size I want to go to the next page.

I considered using a pan gesture recognizer. However I can’t seem to get it working properly.

When the web view decides to call the parent setContentOffset method how do I make sure that it behaviours like it is paying the content?

Hopefully that makes sense.

Please help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source