AutoLayoutLink 1.3.3

AutoLayoutLink 1.3.3

承轩 维护。



  • jianli

#AutoLayoutLink

示例

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

import AutoLayoutLink

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let temp = UIView()
        temp.backgroundColor = .cyan
        view.layoutAv(temp)
            .size(200)
            .center()
        
        let lab = UILabel()
        lab.backgroundColor = .red
        lab.text = "测试label"
        temp.layoutAv(lab)
            .top()
            .horz()
    }
}

要求

iOS 10.0, macOS 10.12, tvOS 10.0
Swift 5.0

安装

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

pod 'AutoLayout', '~> 1.3.0'

作者

jianli, [email protected]

许可证

AutoLayout 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。