OCExtensions 1.10.2

OCExtensions 1.10.2

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2017年9月
SwiftSwift版本3.0
SPM支持SPM

MorbixCristian Madrid维护。



OCExtensions


Build Status


需求

它需要Xcode 8.0+和Swift 3.0。

您的项目部署目标必须为iOS 8.0+

安装

OCExtensions可通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中

pod 'OCExtensions'

文档

颜色

// Get an image representation from a color.
// Default size: 1x1px
func image(withSize size: CGSize? = nil) -> UIImage?

// Example
let redImage = UIColor.redColor().image()

图像

// Instantiate an image with a color.
// Default size: 1x1px
convenience init?(color: UIColor, size: CGSize? = nil)

// Example
let redImage = UIImage(color: UIColor.redColor())

文本框

// Returns a non-optional String value.
var textValue: String

// Check if text input is empty.
var isEmpty: Bool

图层

// Intantiate a Gradient Layer passing only the frame, orientation and color array
convenience init(frame: CGRect, orientation: GradientOrientation, colors: [CGColor])

视图

// TODO: documentation

徽章

// TODO: documentation

视图控制器

// TODO: documentation

作者

Henrique Morbin,[email protected]

许可证

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