Force the non-opacity of the SKCanvasView on iOS

On Android and UWP, this view defaults to a transparent background, whereas
on iOS it was opaque by default. This patch fixes it in the name of consistency.
This commit is contained in:
Simon Chopin 2016-11-28 08:57:51 -06:00
Родитель 540cd843b1
Коммит 2a36477584
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -86,6 +86,9 @@ namespace SkiaSharp.Views.Forms
UserInteractionEnabled = false;
this.controller = controller;
// Force the opacity to false for consistency with the other platforms
Opaque = false;
}
public override void DrawInSurface(SKSurface surface, SKImageInfo info)