iOSAssignFocus.cs 484 Bytes
Newer Older
Mattia's avatar
Mattia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System;
using SampleApp.DependencyServices;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using SampleApp.iOS;

[assembly: Dependency(typeof(iOSAssignFocus))]
namespace SampleApp.iOS
{
    public class iOSAssignFocus : IAssignFocus
    {
        public void AssignFocus(View v)
        {

            UIAccessibility.PostNotification(notification: UIAccessibilityPostNotification.ScreenChanged, argument: v.GetRenderer().NativeView);

        }
    }
}