private async Task UnfocusNameInput() { if (Device.RuntimePlatform == Device.iOS) { await Task.WhenAll(ContentStackLayout.TranslateTo(0, 0, easing: Easing.CubicInOut)); } else { await EntryContainer.TranslateTo(0, 0, easing : Easing.CubicInOut); await TextContainer.FadeTo(1); } }
private async Task FocusNameInput() { if (Device.RuntimePlatform == Device.iOS) { await Task.WhenAll(ContentStackLayout.TranslateTo(0, -50, easing: Easing.CubicInOut)); } else { var keyboardHeight = App.ScreenHeight * 0.45f; var target = Height - keyboardHeight; var yOffset = target - Math.Min(EntryView.GetPosition().Y + EntryContainer.Height, Height); await Task.WhenAll(TextContainer.FadeTo(0), EntryContainer.TranslateTo(0, yOffset, easing: Easing.CubicInOut)); } }