WebView Don't Fit Screen in Xamarin ios

Nehal Osama 21 Reputation points
2020-08-13T08:47:45.737+00:00

I use Xamarin WebView to open a site, On Android the site fills the page and work correctly . But on iOS it appears as shown in the picture

I used this code but it does not solve the problem

var myDisplay = DeviceDisplay.MainDisplayInfo;
MyWebView.HeightRequest = myDisplay.Height;
MyWebView.WidthRequest = myDisplay.Width;

in xaml

<WebView x:Name="MyWebView" Navigating="MyWebView_Navigating"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand" />

I want webview in Ios Appear as same as Android. I added 2 picture to describe what i want
AndroidWebView
Ios WebView

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,415 questions
0 comments No comments
{count} votes

Accepted answer
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-08-13T09:28:26+00:00

    Hello,

    Welcome to Microsoft Q&A.

    Q&A does not currently support Xamarin.iOS related topics, you can ask questions on the Xamarin forum, where the staff are actively answering related questions.

    Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.