Skip to content

aopod/MASwifty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MASwifty

Swifty way to use Masonry

Example

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)

Requirements

  • iOS 8+
  • Swift 4.2+

Installation

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

pod 'MASwifty'

Author

aopod, aopodcom@gmail.com

License

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