Skip to content

A derived UIImageView class to render a rounded image with radius and border options.

License

Notifications You must be signed in to change notification settings

wei/WHRoundedImageView

Repository files navigation

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 github@weispot.com

Credits

Fork of ravero/RoundImageView

About

A derived UIImageView class to render a rounded image with radius and border options.

Resources

License

Stars

Watchers

Forks

Packages

No packages published