PinAuto 2.2

PinAuto 2.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Banxi Lee.



  • By
  • banxi1988

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"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

PinAuto is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PinAuto"

Author

banxi1988, [email protected]

License

PinAuto is available under the MIT license. See the LICENSE file for more info.