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

Pancake view gradient does not work on physical device (iOS) android not tested. #157

Open
bikrambhandari48 opened this issue Jan 13, 2021 · 3 comments

Comments

@bikrambhandari48
Copy link

I am using PancakeView version 2.3.0.759. I am trying to apply the gradient to the background. But the colour does not display on the physical device. If I run the project on an iOS simulator, gradient works fine.

My code is like this

<pancakeView:PancakeView
                                HeightRequest="280"
                                BackgroundGradientStartPoint="0,0"
                                Padding="20"
                                BackgroundGradientEndPoint="1,1"
                                CornerRadius="0,0,80, 0">
                                <pancakeView:PancakeView.BackgroundGradientStops>
                                    <pancakeView:GradientStopCollection>
                                        <pancakeView:GradientStop Color="#008080" Offset="0" />
                                        <pancakeView:GradientStop Color="#ffffff" Offset="1" />
                                    </pancakeView:GradientStopCollection>
                                </pancakeView:PancakeView.BackgroundGradientStops>

--------------Other codes removed-----------------
</pancakeView:PancakeView>

See the screenshot below.

Screenshot on a Simulator.
image

Screenshot on iPhone6s Plus (Samething on iPhone 12 Pro max too)
image

Is anybody else is facing the same issue? I tried pancake version (2.1.0.714 & 2.3.0.763-beta) too but same problem exists.

@devcodet
Copy link

devcodet commented Jan 20, 2021

Same happening here.
Instead of gradient, I'm having problems with Corner Radius.
Seems like that Corner Radius in Android and iOS Simulator works perfectly , but doesn't work in iOS Psychical Device :/

I also tried pancake version (2.3.0.763-beta) but not successfully :/

Any suggestions to solve this issue?

Thank you :)

IMG_0087
Screenshot 2021-01-20 at 10 04 50

@bikrambhandari48
Copy link
Author

Looks like the issue is only on the debug mode on the physical device. I am running the above code in Test Flight and corner radius and gradient both works on physical device.

@devcodet
Copy link

devcodet commented Jan 20, 2021

Hum,
Thank you for reply,
I'm trying with Release Mode in physical device, but the problem persists.
Also, I tried to put app in Test Flight, but I'm having the same problem.
In the meantime, I'm deleting bin and obj folders and rebuild app to ensure that isn't cache problem

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

No branches or pull requests

2 participants