Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 14 App freezes when Visual="Material" in Entries with IsPassword="True"

When you are using Xamarin.Forms.Visual.Material package and create a style like this:

<Style
    TargetType="Entry">
    <Setter
        Property="TextColor"
        Value="{StaticResource OnSurfaceColor}" />
    <Setter
        Property="PlaceholderColor"
        Value="{StaticResource OnSurfaceColor}" />
    <Setter
        Property="BackgroundColor"
        Value="Transparent" />
    <Setter
        Property="FontSize"
        Value="{StaticResource FontSizeNormal}"/>
</Style>

And create a layout like this:

<Frame
        Margin="16,24">
        <StackLayout
            Margin="4,8"
            Spacing="0">

            <Entry
                Visual="Material"
                Text="{Binding UserName}"
                Keyboard="Email"
                Placeholder="{i18n:Translate signIn_txtUserName_placeholder}" />

            <Entry  Visual="Material"
                    x:Name="txtPassword"
                    IsPassword="True"
                    Text="{Binding Password}"
                    Placeholder="{i18n:Translate signIn_txtPassword_placeholder}" />

        </StackLayout>
    </Frame>

App freezes ... When I have changed color between entrys, but It's not work. The first that screen it work, but when I back to it, My iOS 14 App freezes . 1: Login, Screen 2: Home, From App run the first -> Login -> Home, It's work! But Form Home -> Logout back to Login, iOS 14 App freezes :((( Someone help me ? *Please, thanks!

like image 332
Bao Bao Avatar asked Oct 01 '20 06:10

Bao Bao


1 Answers

I have the same problem and I can fix it using style line instead style for this entry. And I don't edit the font, for example in my case, on the style had setted the font family and it doesn't like now with iOS 14... So I remove the font family for this entry and work

like image 93
cansado2930 Avatar answered Oct 27 '22 00:10

cansado2930