GradientViewInspectable 1.1

GradientViewInspectable 1.1

维护者:‘Shoaib-Akhtar’



  • Shoaib Akhtar

GradientView

界面构建器或代码中轻松使用渐变。

CocoaPods

安装

使用CocoaPods

pod 'GradientViewInspectable'

使用方法

在代码中

     let view = GradientView(frame: CGRect(x: 0, y: 50, width: 50))
     view.startColor = .blue   
     view.startColor = viewColor.topColor
     view.endColor = viewColor.bottomColor

在界面构建器中

Change view class to GradientView and you are good to go.

许可证

GradientViewInspectable遵循MIT许可证。有关更多信息,请参阅LICENSE文件。