Latest 0.1.4
Homepage https://github.com/Pircate/SwiftyMasonry
License MIT
Platforms ios 8.0
Dependencies Masonry
Authors

CI Status
Version
Carthage compatible
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SwiftyMasonry is available through CocoaPods or Carthage. To install
it, simply add the following line to your Podfile or Cartfile:

CocoaPods

pod 'SwiftyMasonry'

Carthage

github "Pircate/SwiftyMasonry"

Usage

view.mas.makeConstraints {
    $0.top.equalTo(mas.topLayoutGuide)
    $0.left.right.equalTo(superView)
    $0.bottom.equalTo(superView).inset(49)
}

view.mas.makeConstraints {
    $0.edges.equalTo(superView).insets(UIEdgeInsets(top: 10, left: 20, bottom: 30, right: 40))
}

view.mas.makeConstraints {
    $0.center.equalTo(superView)
    $0.size.mas.equalTo(CGSize(width: 100, height: 100)) // mas.equalTo代替mas_equalTo
}

view.mas.makeConstraints {
    $0.top.equalTo(otherView.mas.bottom).offset(20)
    $0.left.equalTo(superView).inset(15)
}

Author

Pircate, [email protected]

License

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

Latest podspec

{
    "name": "SwiftyMasonry",
    "version": "0.1.4",
    "summary": "Swifty Masonry.",
    "homepage": "https://github.com/Pircate/SwiftyMasonry",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pircate": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Pircate/SwiftyMasonry.git",
        "tag": "0.1.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SwiftyMasonry/Classes/**/*",
    "swift_version": "4.0",
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This