CustomButton
Custom Button [swift file]
Сreate a button that is customizable through the Attributes inspector, and you can view the changes right in Interface Builder. This custom button supports the following customizations:
- Corner radius
- Border width
- Border color
- Title padding for left, right, top and bottom sides
- Image padding for left, right, top and bottom sides
- Left/right image alignment
- Gradient color