TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Banxi Lee.
PinAuto 为在 iOS 开发中使用 AutoLayout 提供了方便的写法.
import PinAuto
class MyViewController:UIViewController{
lazy var box = UIView()
override func loadView() {
super.loadView()
self.view.addSubview(box)
box.pa_width.eq(100).install()
box.pa_height.eq(100).install()
box.pa_centerX.install()
box.pa_centerY.install()
}
}
要运行示例项目,先 clone 此项目,然后先在 Example
目录执行 pod install
命令.
PinAuto 支持(同时推荐)通过CocoaPods安装 . 在你的 Podfile 中加入下面一行即可:
pod "PinAuto"
To run the example project, clone the repo, and run pod install
from the Example directory first.
PinAuto is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PinAuto"
banxi1988, [email protected]
PinAuto is available under the MIT license. See the LICENSE file for more info.