Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Transparency doesn't work in iOS FillRectangle() #461

Open
naweed opened this issue Jun 26, 2022 · 1 comment
Open

Transparency doesn't work in iOS FillRectangle() #461

naweed opened this issue Jun 26, 2022 · 1 comment
Assignees
Labels

Comments

@naweed
Copy link

naweed commented Jun 26, 2022

I noticed that filling a rectangle in iOS doen't set the background to transparent. It works fine on WinUI and Android. Here is the code. On iOS, it always yields White background. I tried FillPaint as well, but same issue.

private void DrawBackground(ICanvas canvas, RectF dirtyRect)
{
    canvas.SaveState();

    canvas.FillColor = Colors.Transparent; ////TODO: Bug Fix in iOS - Transparency doesn't work

    canvas.FillRectangle(dirtyRect);

    canvas.RestoreState();
}
@jsuarezruiz jsuarezruiz self-assigned this Jul 6, 2022
@WebGoose
Copy link

WebGoose commented Aug 29, 2022

Has anyone found a workaround? I'm running into the same problem, even if I don't draw the rectangle. On Android the canvas is transparent by default, on iOS it's white.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants