Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,6 @@ ASALocalRun/
.mfractor/

# Java keystore
*.jks
*.jks

.DS_Store
7 changes: 5 additions & 2 deletions Spixi/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if ANDROID
#if ANDROID
using Android.App;
using Android.OS;
#endif
Expand Down Expand Up @@ -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 =>
Expand Down
16 changes: 16 additions & 0 deletions Spixi/Platforms/iOS/NoAccessoryEditorHandler.cs
Original file line number Diff line number Diff line change
@@ -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();
}
}
}