John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 990 forks source link

WKWebview drag border #624

Open Jenin opened 7 years ago

Jenin commented 7 years ago

I recently stopped supporting IOS7 so have moved to WKWebview.

The issue that I have is: The drag border does not work if the frontView has a WKWebview instance. This doesn't work on the simulator, while on iphone works partially. that is, you can drag if you're touching have the way (vertically) and after that it will stop dragging (second time).

iDevelopper commented 7 years ago

Do you use a storyboard segue to push (Show (e.g. Push)) your controller that contains the WKWebView. If yes, and I don't know why, change this segue type to deprecated push, run and change it again to the adaptive Show (e.g. Push). Otherwise your controller is presented modally.

Jenin commented 7 years ago

No I am creating everything programmatically! No SBs involved.

iDevelopper commented 7 years ago

Objective-c or Swift? I have an example written in Objective-c.

Jenin commented 7 years ago

objective-c. thank you in advance

iDevelopper commented 7 years ago

SWWebView.zip

Jenin commented 7 years ago

Thank you very much, I will be checking this, in case it worked I will compare code with mine, and will indeed get back to you with feedback.

I do thank you again.

iDevelopper commented 7 years ago

I updated the sample:

For the tap gesture recognizer when tap in WKWebView. Add WKWebView directly from rear view controller too (left menu).

SWWebView 2.zip