public static void InitializeFrom(this UIView nativeControl, CoreSegment formsControl)
        {
            if (nativeControl == null || formsControl == null)
            {
                return;
            }

            nativeControl.Layer.MasksToBounds = true;
            nativeControl.Layer.CornerRadius  = (float)formsControl.CornerRadius;
            nativeControl.UpdateBorder(formsControl.BorderColor, formsControl.BorderThickness);
        }
        public static void UpdateFrom(this UIView nativeControl, CoreSegment formsControl,
                                      string propertyChanged)
        {
            if (nativeControl == null || formsControl == null)
            {
                return;
            }

            if (propertyChanged == CoreSegment.CornerRadiusProperty.PropertyName)
            {
                nativeControl.Layer.CornerRadius = (float)formsControl.CornerRadius;
            }

            if (propertyChanged == CoreSegment.BorderColorProperty.PropertyName)
            {
                nativeControl.UpdateBorder(formsControl.BorderColor, formsControl.BorderThickness);
            }

            if (propertyChanged == CoreSegment.BorderThicknessProperty.PropertyName)
            {
                nativeControl.UpdateBorder(formsControl.BorderColor, formsControl.BorderThickness);
            }
        }