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.
RoundImageView is available through CocoaPods, just add the reference to your Podfile:
pod 'WHRoundedImageView'
You can copy WHRoundedImageView.swift
directly into your project.
- Set class to
WHRoundedImageView
in Identity Inspector, and use it as a normal UIImageView. - Set properties below:
radiusRatio
Default: 0.0 (0.5 = fully rounded corners for square images)borderWidth
Default: 0.0borderColor
Default: blackColor
Wei He github@weispot.com
Fork of ravero/RoundImageView