https://github.com/wei/whroundedimageview
A derived UIImageView class to render a rounded image with radius and border options.
https://github.com/wei/whroundedimageview
Last synced: 3 months ago
JSON representation
A derived UIImageView class to render a rounded image with radius and border options.
- Host: GitHub
- URL: https://github.com/wei/whroundedimageview
- Owner: wei
- License: mit
- Created: 2015-05-22T16:59:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T01:00:08.000Z (almost 8 years ago)
- Last Synced: 2025-03-03T02:01:45.256Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 138 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WHRoundedImageView    [](https://github.com/ddhhz/WHRoundedImageView)
WHRoundedImageView is a plain simple _swift_ component that extends a UIImageView. It allows you to add Radius and Border to an image directly in Interface Builder.
*Live preview is fully supported.*

## Installation
##### *For iOS 8.0+*
RoundImageView is available through CocoaPods, just add the reference to your Podfile:```
pod 'WHRoundedImageView'
```##### *For All* (including iOS 8.0+)
You can copy ```WHRoundedImageView.swift``` directly into your project.## Usage
1. Set class to ```WHRoundedImageView``` in _Identity Inspector_, and use it as a normal UIImageView.
2. Set properties below:
- ```radiusRatio``` _Default: 0.0_ (0.5 = fully rounded corners for square images)
- ```borderWidth``` _Default: 0.0_
- ```borderColor``` _Default: blackColor_## Author
**Wei He** [email protected]_## Credits
Fork of [ravero/RoundImageView](https://github.com/ravero/RoundImageView)