Latest 1.1.2
Homepage https://github.com/ddhhz/WHRoundedImageView
License MIT
Platforms ios 8.0, requires ARC
Authors

WHRoundedImageView WHRoundedImageView WHRoundedImageView WHRoundedImageView Analytics

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

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

Latest podspec

{
    "name": "WHRoundedImageView",
    "version": "1.1.2",
    "summary": "A derived UIImageView class to render a rounded image with radius and border options.",
    "homepage": "https://github.com/ddhhz/WHRoundedImageView",
    "license": "MIT",
    "authors": {
        "Wei He": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ddhhz/WHRoundedImageView.git",
        "tag": "1.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "WHRoundedImageView/**/*.swift"
}

Pin It on Pinterest

Share This