Skip to content

Commit

Permalink
Fix for iOS crash when nesting a WebView inside PullToRefreshLayout.
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d2rigo committed Feb 14, 2017
1 parent e8601a3 commit ed1e946
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ bool TryInsertRefresh(UIView view, int index = 0)
return true;
}

if(view is UIWebView)
var uiWebView = view as UIWebView;
if (uiWebView != null)
{
view.InsertSubview(refreshControl, index);
uiWebView.ScrollView.InsertSubview(refreshControl, index);
return true;
}

Expand Down

0 comments on commit ed1e946

Please sign in to comment.