|
|
|
@ -6,6 +6,7 @@ using Avalonia.Input.Platform; |
|
|
|
using Avalonia.OpenGL; |
|
|
|
using Avalonia.Platform; |
|
|
|
using Avalonia.Rendering; |
|
|
|
using Avalonia.Rendering.Composition; |
|
|
|
|
|
|
|
namespace Avalonia |
|
|
|
{ |
|
|
|
@ -26,6 +27,8 @@ namespace Avalonia.iOS |
|
|
|
{ |
|
|
|
public static EaglFeature GlFeature; |
|
|
|
public static DisplayLinkTimer Timer; |
|
|
|
internal static Compositor Compositor { get; private set; } |
|
|
|
|
|
|
|
class PlatformSettings : IPlatformSettings |
|
|
|
{ |
|
|
|
/// <inheritdoc cref="IPlatformSettings.TouchDoubleClickSize"/>
|
|
|
|
@ -57,6 +60,10 @@ namespace Avalonia.iOS |
|
|
|
.Bind<IRenderTimer>().ToConstant(Timer) |
|
|
|
.Bind<IPlatformThreadingInterface>().ToConstant(new PlatformThreadingInterface()) |
|
|
|
.Bind<IKeyboardDevice>().ToConstant(keyboard); |
|
|
|
|
|
|
|
Compositor = new Compositor( |
|
|
|
AvaloniaLocator.Current.GetRequiredService<IRenderLoop>(), |
|
|
|
AvaloniaLocator.Current.GetService<IPlatformOpenGlInterface>()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|