Open heruvilius opened 6 years ago
+1
+1
@landsv @xgoo either provide constructive feedback or avoid meaningless +1, GH reactions were implemented for a reason. Bugging me with a notification is not going to help me fix the issue. Thanks
@heruvilius I'm not sure I fully understand what you mean. Sometimes it works and sometimes it doesn't? I'd advise against following the webview's scrollview, since the library already does that internally.
@andreamazz "Sometimes it works and sometimes it doesn't?" - yes, that's exactly what is happening.
"I'd advise against following the webview's scrollview, since the library already does that internally." - so I should follow the webView
itself instead?
I should follow the webView itself instead?
Exactly
@andreamazz the problem still persists. Maybe the issue is my view hierarchy? I shall describe it again.
MyViewController:
- UINavigationBar
- UIView:
-- WKWebView
-- UIView
-- UIView
- UIToolbar
Looks like contentInset
and scrollIndicatorInsets
should be reseted as it's done with contentOffset
. At least it resolved my case.
Looks like contentInset and scrollIndicatorInsets should be reseted as it's done with contentOffset. At least it resolved my case.
Where did you reset the insets?
The contentOffset
is reset in case of a translucent navbar, it doesn't seem @heruvilius' case, judging by the videos above.
@andreamazz same with #238 ?
Hello.
Am am using this framework with
WKWebView
to minimizeNavigation Bar
when scrolling downwards. I am facing a problem whenNavigation Bar
has its full height, but my web view is offset as if the bar has its small height.Here is the video, where everything works fine. And here is the video, where the behaviour is undesired.
To use the framework I've added the following lines into
View Controller
that managesWKWebView
:webView
is aUIView
that hasWKWebView
instance inside its view hierarchy, as well as some other views. It'sscrollView
property simply returnsWKWebView
instance'sscrollView
property.