diff --git a/.gitignore b/.gitignore index d1c8be21..6f8b9af3 100644 --- a/.gitignore +++ b/.gitignore @@ -331,4 +331,6 @@ ASALocalRun/ .mfractor/ # Java keystore -*.jks \ No newline at end of file +*.jks + +.DS_Store diff --git a/Spixi/MauiProgram.cs b/Spixi/MauiProgram.cs index 1c0069e5..ad1c101a 100644 --- a/Spixi/MauiProgram.cs +++ b/Spixi/MauiProgram.cs @@ -1,4 +1,4 @@ -#if ANDROID +#if ANDROID using Android.App; using Android.OS; #endif @@ -32,13 +32,16 @@ public static MauiApp CreateMauiApp() }) .ConfigureMauiHandlers((handlers) => { -#if ANDROID +#if ANDROID //handlers.AddHandler(typeof(WebView), typeof(Spixi.Platforms.Android.Renderers.MyWebViewHandler)); handlers.AddCompatibilityRenderer(typeof(WebView), typeof(Spixi.Platforms.Android.Renderers.SpixiWebviewRenderer2)); #endif #if IOS handlers.AddHandler(typeof(WebView), typeof(Spixi.Platforms.iOS.iOSWebViewHandler)); + + // Remove iOS keyboard accessory bar for Editor + handlers.AddHandler(typeof(Editor), typeof(Spixi.Platforms.iOS.NoAccessoryEditorHandler)); #endif }) .ConfigureLifecycleEvents(events => diff --git a/Spixi/Platforms/iOS/NoAccessoryEditorHandler.cs b/Spixi/Platforms/iOS/NoAccessoryEditorHandler.cs new file mode 100644 index 00000000..bbb32094 --- /dev/null +++ b/Spixi/Platforms/iOS/NoAccessoryEditorHandler.cs @@ -0,0 +1,16 @@ +using Microsoft.Maui.Handlers; +using UIKit; + +namespace Spixi.Platforms.iOS +{ + public class NoAccessoryEditorHandler : EditorHandler + { + protected override void ConnectHandler(UITextView nativeView) + { + base.ConnectHandler(nativeView); + + // Remove iOS toolbar above keyboard (arrow up/down + checkmark) + nativeView.InputAccessoryView = new UIView(); + } + } +}