#AutoLayoutLink
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
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()
}
}Requirements
iOS 10.0, macOS 10.12, tvOS 10.0
Swift 5.0Installation
AutoLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AutoLayout', '~> 1.3.0'Author
jianli, [email protected]
License
AutoLayout is available under the MIT license. See the LICENSE file for more info.