PinCushion 1.2.0

PinCushion 1.2.0

测试已测试
语言语言 SwiftSwift
许可 MIT
发布最后发布2019年3月
SPM支持 SPM

Lucas Best 维护。



PinCushion

Version License Platform

示例

PinCushion 是一个轻量级的 UIView 扩展,旨在简化 NSLayoutConstraint 代码。PinCushion 尝试用与 Interface Builder 视觉上使用的相同词汇。

例如,要向视图添加宽度约束,所有您需要做的就是 view.pin(.width, constant:50.0),然后您的视图现在被约束为 50 点宽度。

要运行示例项目,请克隆repos,然后从示例目录首先运行 pod install

安装

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

pod 'PinCushion'

作者

Lucas Best,[email protected]

许可协议

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