iOSHasFocus.cs 422 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 21
using System;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using fun5.iOS;
using System.Threading.Tasks;
using SampleApp.DependencyServices;

[assembly: Dependency(typeof(iOSFocus))]
namespace fun5.iOS
{
    public class iOSFocus : IIsFocused
    {

        public bool isFocused(View v)
        {
            return v.GetRenderer().NativeView.AccessibilityElementIsFocused();
        }

    }
}