CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

WHRoundedImageView 1.1.2

WHRoundedImageView 1.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by Wei He.



  • By
  • Wei He

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