To run the example project, clone the repo, and run pod install
from the Example directory first.
let label = UILabel()
let button = UIButton()
view.addSubview(label)
view.addSubview(button)
label.left == view.left + 10.0
label.right <= view.right - 10.0
label.top == view.topMargin + 10.0
label.height == 20.0
button.centerX == view.centerX
button.width == view.width * 0.9
button.top == label.bottom + 20.0
button.height == 44.0
- File > Swift Packages > Add Package Dependency
- Add https://github.com/doil6317/SuperEasyLayout.git
- Select "Up to Next Major"
SuperEasyLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SuperEasyLayout'
doil6317, [email protected]
SuperEasyLayout is available under the MIT license. See the LICENSE file for more info.