Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradient not loading on iOS #9854

Closed
gustavf opened this issue Sep 1, 2022 · 3 comments · Fixed by #7925
Closed

Gradient not loading on iOS #9854

gustavf opened this issue Sep 1, 2022 · 3 comments · Fixed by #7925
Assignees
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-7.0.58 Look for this fix in 7.0.58! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/iOS 🍎 t/bug Something isn't working

Comments

@gustavf
Copy link

gustavf commented Sep 1, 2022

Description

Sorry, got on more problem with the gradient or possibly the frame in iOS. On initial loading the app the background is white instead of drawing the expected coloured backgroun. Android seems not to have this issue. Other controls seem fine (label, buttons, images etc).

Steps to Reproduce

I start with frame/gradient:

<Frame>
    <Frame.Background>
        <LinearGradientBrush EndPoint="0,1">
            <GradientStop Color="Yellow" 
                                  Offset="1.0" />
            <GradientStop Color="Blue" 
                                  Offset="0.1" />
        </LinearGradientBrush>
    </Frame.Background>
</Frame>

When I load this on iOS simulator and device, it shows a white screen (other controls like labels are showing fine). If I bring it to the background, look at the home screen and then bring it back, then it draws my background (my gradient in this case).

Link to public reproduction project repository

n/a

Version with bug

6.0.312

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

latest iOS (15.5), both simulator and device

Did you find any workaround?

No response

Relevant log output

No response

@gustavf gustavf added the t/bug Something isn't working label Sep 1, 2022
@jsuarezruiz jsuarezruiz added the area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing label Sep 1, 2022
@PureWeen PureWeen added the s/needs-repro Attach a solution or code which reproduces the issue label Sep 1, 2022
@ghost
Copy link

ghost commented Sep 1, 2022

Hi @gustavf. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@gustavf
Copy link
Author

gustavf commented Sep 2, 2022

Repo available here https://github.com/gustavf/mauibug
Also added two screenshots. It's enough to lock/unlock the screen and the gradient will show correctly.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Sep 2, 2022
@jfversluis
Copy link
Member

Might be fixed by #7925

@jfversluis jfversluis removed the s/needs-attention Issue has more information and needs another look label Sep 5, 2022
@mattleibow mattleibow added this to the .NET 7 Planning milestone Sep 6, 2022
@PureWeen PureWeen moved this to Done in MAUI SDK Ongoing Nov 23, 2022
@jsuarezruiz jsuarezruiz self-assigned this Nov 30, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 30, 2022
@samhouts samhouts added fixed-in-7.0.58 Look for this fix in 7.0.58! fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! labels Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-7.0.58 Look for this fix in 7.0.58! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants