Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Problem with Xamarin WebView Transparent Render IOS

$
0
0

Hi friends
someone can i help me please,
i want a background transparent webview.
in Android no have a problem.

but in IOS, doesnt work.
i test the app in IPhone 5 IOS 9.0

this is a webView Render IOS

`
using System;
using IGS.iOS;
using IGS;
using UIKit;
using WebKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using IGS.iOS.Renderers;

[assembly: ExportRenderer(typeof(Xamarin.Forms.WebView), typeof(CustomTransparentWebViewRenderer))]
namespace IGS.iOS.Renderers
{
public class CustomTransparentWebViewRenderer : WebViewRenderer
{
protected override void OnElementChanged (VisualElementChangedEventArgs e)
{
base.OnElementChanged(e);
this.BackgroundColor = UIColor.Clear;
}
}
}
`


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>