Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T01:00:08.000Z (over 7 years ago)
- Last Synced: 2024-10-04T06:41:06.254Z (about 1 month 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 ![WHRoundedImageView](https://img.shields.io/cocoapods/v/WHRoundedImageView.svg) ![WHRoundedImageView](https://img.shields.io/cocoapods/l/WHRoundedImageView.svg) ![WHRoundedImageView](https://img.shields.io/cocoapods/p/WHRoundedImageView.svg) [![Analytics](https://ga-beacon.appspot.com/UA-63284043-1/WHRoundedImageView/README.md?pixel)](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.*
![WHRoundedImageView](WHRoundedImageViewDemo.gif "WHRoundedImageView")
## 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)