[BUG] [iOS] Entry placeholder color changes during animation when it shouldn't
See original GitHub issueAs you can see in the .gif provided below, there is a weird bug happening when transitioning from one entry to another. It looks to my like the color in question is being set for the animation and is ignoring the (placeholder) color property of the entry.
Bug Information
Version Number of Plugin: 2.2.0 Device Tested On: iPhone 11 Pro Simulator Tested On: iOS (Multiple) Version of Xamarin: 4.8.0.1269 Versions of other things you are using:
- PancakeView: 2.0.1.707
- Prism: 7.2.0.1422
Steps to reproduce the Behavior
- Implement 2 Pages with an entry each. (with placeholder and keep colors the same for debugging)
- “Link” them by giving them the save Transition.Name attribute.
- Change pages.
Expected Behavior
Seamles transition from one page to another without changing any colors since origin & destination have the same colors.
Actual Behavior
The entry placeholder turns to a different shade of gray before “popping back in”
Code snippet
<Entry Text="{Binding Password}" BackgroundColor="Transparent" sharedTransitions:Transition.Name="EntryPassword" PlaceholderColor="#A2A2A2" Placeholder="Test"> </Entry>
Screenshots
afaik the PancakeView is doing what it should do since gradients need to be rendered seperately on iOS
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
This is because the plugin is trying to recreate the view to apply smooth transition between views that change borders, colors, ecc…
In your casethis behaviour is overkill and produce unwanted effects to the views. I’m planning in the next version to add a “light” transition for ios that just take a raster snaspshot of the view and animate it (so we dont mess with borders, and other properties). This should fix your UI.
I’m planning the update by the end of this month, maybe sooner as my healthkit/googlefit plugin require more works i’m going to switch to the SharedTransitions and ship an update
Thank you for your work!