-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
iOS animated border #24104
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
@IeuanWalker the fix introduced in SR7 is done by me (also the author of the workaround you linked). I tested it with this: https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue18204.xaml It was working so I see two options here:
|
@IeuanWalker my fix is still working, which means there's something not covered by the fix. Looking at your videos I see many buttons which I suppose are the same component, based on May you tell us what differentiate those buttons, it may be related to What would be interesting to know is the layout of the page which contains |
@albyrock87 ill see if i can produce a repo project monday. As far as im aware all the things u can see getting animated in the vid is where the IsVisible property is initially false |
@IeuanWalker this is what I'm trying now, and still works fine (I'm on SR8) <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Maui.Controls.Sample.Issues.Issue18204"
Title="Issue18204">
<Grid RowDefinitions="*,Auto" Padding="24">
<Border
Grid.Row="1"
HorizontalOptions="Center"
IsVisible="False"
x:Name="TheBorder"
BackgroundColor="LightBlue"
Shadow="{Shadow Brush=Black, Offset='0,2', Radius=2, Opacity=0.20}"
StrokeShape="{RoundRectangle CornerRadius=20}">
<Button x:Name="TheButton" Clicked="ButtonClicked" BackgroundColor="LightGreen" WidthRequest="200" Text="Hello world" />
</Border>
</Grid>
</ContentPage> public partial class Issue18204 : ContentPage
{
public Issue18204()
{
InitializeComponent();
}
protected override async void OnAppearing()
{
base.OnAppearing();
await Task.Delay(2000);
((View)TheButton.Parent).IsVisible = true;
}
private void ButtonClicked(object sender, EventArgs e)
{
var button = (Button)sender;
button.CancelAnimations();
var targetHeight = button.HeightRequest switch
{
200 => 500,
500 => 200,
_ => 500
};
button.Animate("Height", new Animation(v => button.HeightRequest = v, button.Height, targetHeight, Easing.Linear));
}
} |
@albyrock87 i've tried the nugets in the linked zip file, for some reason the app is crashing as soon as I navigate from the homepage -
Works fine with the latest release on nuget |
@IeuanWalker May you try with with the latest 8.x nightly build? |
@albyrock87 Ye sure, you got a link to the nightly build? |
Duplicate of #21643 |
Description
Border control on iOS animates in. This was reported previously (#18204) and has closed, with the tag "fixed-in-8.0.70".
I am using 8.0.71 and am still experiencing the issue.
Here is a video of the issue, and then showing the linked workaround working -
2024-08-08.16-57-52.mp4
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.71 SR7.1
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
Workaround - #18204 (comment)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: