WHRoundedImageView 1.1.2

WHRoundedImageView 1.1.2

测试已测试
Lang语言 SwiftSwift
许可证 MIT
Released最新版本2015年9月
SPM支持SPM

Wei He维护。



  • 作者
  • Wei He

WHRoundedImageView Analytics

WHRoundedImageView 是一个简单方便的 swift 组件,它扩展了 UIImageView。它允许您在 Interface Builder 中直接为图像添加半径和边框。

实时预览完全支持。

WHRoundedImageView

安装

适用于iOS 8.0+

通过CocoaPods提供RoundImageView,只需将其引用添加到您的Podfile中

pod 'WHRoundedImageView'
所有版本(包括iOS 8.0+)

您可以直接将 WHRoundedImageView.swift 拷贝到您的项目中。

用法

  1. Identity Inspector 中将类设置为 WHRoundedImageView,然后像使用常规的 UIImageView 一样使用它。
  2. 设置以下属性
    • radiusRatio 默认值:0.0(0.5 = 正方形图像的完全圆角)
    • borderWidth 默认值:0.0
    • borderColor 默认值:blackColor

作者

Wei He [email protected]

鸣谢

ravero/RoundImageView 衍生