Swifty way to use Masonry
To run the example project, clone the repo, and run pod install
from the Example directory first.
header.mas.makeConstraints { (make) in
make.top.equalTo(self.mas.topLayoutGuideBottom)
make.leading.trailing.equalToSuperview()
make.height.equalTo(44)
}
label.mas.compressionPriority(.required, for: .horizontal, .vertical)
footerViews.mas.distribute(along: .horizontal, fixedSpacing: 10, leadSpacing: 10, tailSpacing: 10)
- iOS 8+
- Swift 4.2+
MASwifty is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MASwifty'
aopod, aopodcom@gmail.com
MASwifty is available under the MIT license. See the LICENSE file for more info.