rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 336 forks source link

MoveAnimation does not work on iOS #751

Open bbenetskyy opened 1 year ago

bbenetskyy commented 1 year ago

🐛 Bug Report

The same MoveAnimation on iOS does not work at all and display's like there is no animation has been added, while on Android all works as expected

<?xml version="1.0" encoding="utf-8" ?>
<rg:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:rg="http://rotorgames.com"
             x:Class="App1.MyPopupPage">
   <rg:PopupPage.Animation>
        <rg:MoveAnimation
            DurationIn="{OnPlatform iOS='700', Android='400'}"
            DurationOut="{OnPlatform iOS='500', Android='300'}"
            EasingIn="SinOut"
            EasingOut="SinIn"
            HasBackgroundAnimation="True"
            PositionIn="Bottom"
            PositionOut="Bottom"/>
    </rg:PopupPage.Animation>
    <StackLayout Margin="12"
                 Padding="24"
                 BackgroundColor="White"
                 HorizontalOptions="Center"
                 VerticalOptions="Center">
        <Button BackgroundColor="DodgerBlue"
                FontSize="30"
                Text="Login"
                TextColor="White" />
    </StackLayout>
</rgPages:PopupPage>

Expected behavior

Works same as on Android - mean move from PositionIn value and disappear with PositionOut value. In my example - from Bottom to Bottom

Configuration

Version: Rg.Plugins.Popup 2.1.0

Platform: