FreakingSimpleRoundImageView 1.3

FreakingSimpleRoundImageView 1.3

Anokhov Pavel 维护。




  • 作者:
  • realbonus

FreakingSimpleRoundImageView

Simple RoundImageView

CI Status Version License Platform

是一个真正的、真正的简单圆形 ImageView,支持 Interface Builder,版本 1.3 已迁移到 Swift 4.2。

Attributes inspector

示例

要运行示例项目,请先克隆仓库,然后先从 Example 目录运行 pod install

安装

FreakingSimpleRoundImageView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'FreakingSimpleRoundImageView'

使用

  1. 打开您的 storyboard,在场景中放置一个 ImageView。
  2. 打开 Identity 选项卡(cmd+alt+3)。为它设置一个 RoundImageView 类。
  3. 等待一秒或两秒,直到 “Designables: Up to date” 行出现。
  4. 转到 Attributes 选项卡(cmd+alt+4),设置边框宽度和边框颜色
  5. 在 Attributes 选项卡中,设置 'Clip to bounds' 标志。
  6. 那就开心吧。

作者

realbonus, [email protected]

许可证

FreakingSimpleRoundImageView 在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。

图片来源: Starwars.com