UIView with Image, shadow and border in Swift
Change needed UIView attributes directly from the Identity Inspector
- Border Color
- Border Width
- Corner Radius
- Image
- Image Content Mode
- Shadow Color
- Shadow Opacity
- Shadow Radius
- Shadow Offset
Manual:
- drag 'n drop SwiftShadowImageView.swift file into your project.
Storyboard:
- Drag & drop a UIView to your Storyboard.
- Change its Class to SwiftShadowImageView
- Modify its values in the Attributes Inspector and watch your view change!!!!
- If you need to change something in your code, drag an IBOutlet to your controller and then make your changes (as shown in project)
- George Leonidas
This project is licensed under the MIT License - see the LICENSE.md file for details