Open dr1rrb opened 1 year ago
If you animate X and Y properties on the same TranslateTransform you might have some weird behaviors on Android and iOS (independent animations).
X
Y
TranslateTransform
https://github.com/unoplatform/uno/blob/master/doc/articles/features/working-with-animations.md#general-guidelines
You can animate all properties of an object!
No response
Create a UI sub-layer for each property you can to animate, for instance for X and Y of TranslateTransform you do something like :
<Border> <Border.RenderTransform> <TranslateTransform x:Name="xTransform" X="0" /> </Border.RenderTransform> <Border> <Border.RenderTransform> <TranslateTransform x:Name="yTransform" Y="0" /> </Border.RenderTransform> </Border> </Border>
None
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
4.9
Android, iOS
This issue is a blocker for the workaround suggested here https://github.com/unoplatform/uno/issues/12301
This is also probably the root cause for https://github.com/unoplatform/uno/issues/7812
Current behavior
If you animate
X
andY
properties on the sameTranslateTransform
you might have some weird behaviors on Android and iOS (independent animations).https://github.com/unoplatform/uno/blob/master/doc/articles/features/working-with-animations.md#general-guidelines
Expected behavior
You can animate all properties of an object!
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
Create a UI sub-layer for each property you can to animate, for instance for
X
andY
ofTranslateTransform
you do something like :Works on UWP/WinUI
None
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
4.9
Affected platforms
Android, iOS
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response