IconButton版本0.2.0

IconButton 0.2.0

Luigi Aiello维护。



  • 作者
  • Luigi Aiello

IconButton

CI Status Version License Platform

入门介绍

Storyboard

  • 转到main.storyboard,并添加一个空白UIBuTton
  • 打开Identity Inspector,在class字段中输入'IconButton'
  • 确保在Module字段中选中'IconButton'
  • 切换到Attributes Inspector,并按照喜好进行配置。

CardViewStoryboard

示例

这是一个正常iOS按钮和您可以用此库做什么的小示例。

Classic
Custom

定制

var clickAlphaComponent: CGFloat
var title: String?
var titleColor: UIColor?
var image: UIImage?
var imageTintColor: UIColor?
var isCircle: Bool
var cornerRadius: CGFloat
var borderWidth: CGFloat
var borderColor: UIColor
var shadowRadius: CGFloat
var shadowOpacity: CGFloat
var shadowOffSet: CGFloat
var shadowColor: UIColor

前提条件

  • Xcode 9.0 或更高版本
  • Swift 4.0

安装

Cocoapods

use_frameworks!
pod 'IconButton'

作者

Luigi Aiello,[email protected]

许可证

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