Skip to content

Commit

Permalink
add check for ios13 on embedded webview for configuring the preferred… (
Browse files Browse the repository at this point in the history
#1629)

* add check for ios13 on embedded webview for configuring the preferred content mode

* re-add app center flag
  • Loading branch information
jennyf19 committed Feb 13, 2020
1 parent 890d9e0 commit 45b94c0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ protected WKWebView PrepareWKWebView()
{
WKWebViewConfiguration wkconfg = new WKWebViewConfiguration() { };
#if !IS_APPCENTER_BUILD
wkconfg.DefaultWebpagePreferences.PreferredContentMode = WKContentMode.Mobile;
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
{
wkconfg.DefaultWebpagePreferences.PreferredContentMode = WKContentMode.Mobile;
}
#endif
_wkWebView = new WKWebView(View.Bounds, wkconfg)
{
Expand Down

0 comments on commit 45b94c0

Please sign in to comment.