{"action":"created","issue":{"url":"https://api.github.com/repos/Masonry/Masonry/issues/108","labels_url":"https://api.github.com/repos/Masonry/Masonry/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Masonry/Masonry/issues/108/comments","events_url":"https://api.github.com/repos/Masonry/Masonry/issues/108/events","html_url":"https://github.com/Masonry/Masonry/issues/108","id":44570169,"number":108,"title":"iOS 8 : Add support for layout margins","user":{"login":"guillaume-algis","id":1041337,"avatar_url":"https://avatars.githubusercontent.com/u/1041337?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaume-algis","html_url":"https://github.com/guillaume-algis","followers_url":"https://api.github.com/users/guillaume-algis/followers","following_url":"https://api.github.com/users/guillaume-algis/following{/other_user}","gists_url":"https://api.github.com/users/guillaume-algis/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaume-algis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaume-algis/subscriptions","organizations_url":"https://api.github.com/users/guillaume-algis/orgs","repos_url":"https://api.github.com/users/guillaume-algis/repos","events_url":"https://api.github.com/users/guillaume-algis/events{/privacy}","received_events_url":"https://api.github.com/users/guillaume-algis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-01T14:33:24Z","updated_at":"2015-02-21T01:02:37Z","closed_at":"2015-01-22T21:29:46Z","body":"While it does seems to be documented anywhere by Apple, [iOS 8 introduced a couple of new layout attributes](http://ericasadun.com/2014/08/28/auto-layout-ios-8/) in NSLayoutConstraint.h:\r\n\r\n    NSLayoutAttributeLastBaseline = NSLayoutAttributeBaseline,\r\n    NSLayoutAttributeFirstBaseline NS_ENUM_AVAILABLE_IOS(8_0),\r\n    \r\n    NSLayoutAttributeLeftMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeRightMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeTopMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeBottomMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeLeadingMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeTrailingMargin NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeCenterXWithinMargins NS_ENUM_AVAILABLE_IOS(8_0),\r\n    NSLayoutAttributeCenterYWithinMargins NS_ENUM_AVAILABLE_IOS(8_0),\r\n\r\nIt would be nice to be able to use these using Masonry. Something like:\r\n\r\n    [view1 mas_makeConstraints:^(MASConstraintMaker *make) {\r\n        make.left.equalTo(superview.mas_leftMargin);\r\n    }];"},"comment":{"url":"https://api.github.com/repos/Masonry/Masonry/issues/comments/75346748","html_url":"https://github.com/Masonry/Masonry/issues/108#issuecomment-75346748","issue_url":"https://api.github.com/repos/Masonry/Masonry/issues/108","id":75346748,"user":{"login":"cloudkite","id":598870,"avatar_url":"https://avatars.githubusercontent.com/u/598870?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudkite","html_url":"https://github.com/cloudkite","followers_url":"https://api.github.com/users/cloudkite/followers","following_url":"https://api.github.com/users/cloudkite/following{/other_user}","gists_url":"https://api.github.com/users/cloudkite/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudkite/subscriptions","organizations_url":"https://api.github.com/users/cloudkite/orgs","repos_url":"https://api.github.com/users/cloudkite/repos","events_url":"https://api.github.com/users/cloudkite/events{/privacy}","received_events_url":"https://api.github.com/users/cloudkite/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T01:02:37Z","updated_at":"2015-02-21T01:02:37Z","body":"PRs are always welcome!\n\nOn Sat, Feb 21, 2015 at 9:44 AM, Craig Siemens <notifications@github.com>\nwrote:\n\n> As far as I can tell, this issue has been closed but margins haven't been added yet. Is this being worked on or would a PR be welcome?\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/Masonry/Masonry/issues/108#issuecomment-75315945"}}