Ejemplo n.º 1
0
        public static void ApplyBorderColor(this UIView @this, XPlatColor color, int size = 1, XPlatCornerRadius cornerRadius = null)
        {
            if (@this == null || color == null)
            {
                return;
            }

            if (cornerRadius == null)
            {
                cornerRadius = new XPlatCornerRadius(5);
            }

            @this.ApplyBorder(GetRectCorners(cornerRadius), cornerRadius?.Radius ?? 0, color.ToNative(), (float)size);
        }