IosAccessiiblityName.cs 432 Bytes
Newer Older
Poli97's avatar
Poli97 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using XAMARINAccessibilityName.iOS;

[assembly: Dependency(typeof(IosAccessiiblityName))]
namespace XAMARINAccessibilityName.iOS
{
    public class IosAccessiiblityName : IAccessibilityName
    {
        public void setName(View v, string s)
        {
            v.GetRenderer().NativeView.SetAccessibilityLabel(v.GetRenderer().Element, s);
        }
    }
}