using System; using Bit.iOS.Core.Effects; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; [assembly: ExportEffect(typeof(NoEmojiKeyboardEffect), nameof(NoEmojiKeyboardEffect))] namespace Bit.iOS.Core.Effects { public class NoEmojiKeyboardEffect : PlatformEffect { protected override void OnAttached() { if (Element != null && Control is UITextField textField) { textField.KeyboardType = UIKeyboardType.ASCIICapable; } } protected override void OnDetached() { } } }