Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/SectionsShared/Animations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public static async Task FadeOutFrame1ToRevealFrame2(Frame frame1, Frame frame2)
frame1.IsHitTestVisible = false;

// 2. Make the next frame visible so that we see it as the previous frame fades out.
frame2.Opacity = 1;
#if __IOS__ || __ANDROID__
// TODO: Fix this workaround
frame2.SetValue(UIElement.OpacityProperty, 1d, DependencyPropertyValuePrecedences.Animations);
// See issue https://github.com/unoplatform/uno/issues/22375 for more details.
frame2.ClearValue(UIElement.OpacityProperty);
#endif
frame2.Opacity = 1;
frame2.Visibility = Visibility.Visible;
frame2.IsHitTestVisible = true;

Expand All @@ -56,11 +56,11 @@ public static async Task FadeInFrame2ToHideFrame1(Frame frame1, Frame frame2)
frame1.IsHitTestVisible = false;

// 2. Make the next frame visible, but transparent.
frame2.Opacity = 0;
#if __IOS__ || __ANDROID__
// TODO: Fix this workaround
frame2.SetValue(UIElement.OpacityProperty, 0d, DependencyPropertyValuePrecedences.Animations);
// See issue https://github.com/unoplatform/uno/issues/22375 for more details.
frame2.ClearValue(UIElement.OpacityProperty);
#endif
frame2.Opacity = 0;
frame2.Visibility = Visibility.Visible;

// 3. Fade in the frame.
Expand Down
Loading