{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/mamaral/Neon/pulls/33","id":70592392,"html_url":"https://github.com/mamaral/Neon/pull/33","diff_url":"https://github.com/mamaral/Neon/pull/33.diff","patch_url":"https://github.com/mamaral/Neon/pull/33.patch","issue_url":"https://api.github.com/repos/mamaral/Neon/issues/33","number":33,"state":"open","locked":false,"title":"Align views next to each other to the write while wrapping","user":{"login":"tim12s","id":3245781,"avatar_url":"https://avatars.githubusercontent.com/u/3245781?v=3","gravatar_id":"","url":"https://api.github.com/users/tim12s","html_url":"https://github.com/tim12s","followers_url":"https://api.github.com/users/tim12s/followers","following_url":"https://api.github.com/users/tim12s/following{/other_user}","gists_url":"https://api.github.com/users/tim12s/gists{/gist_id}","starred_url":"https://api.github.com/users/tim12s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim12s/subscriptions","organizations_url":"https://api.github.com/users/tim12s/orgs","repos_url":"https://api.github.com/users/tim12s/repos","events_url":"https://api.github.com/users/tim12s/events{/privacy}","received_events_url":"https://api.github.com/users/tim12s/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nFor certain scenarios I want to align components next to each other \"to the right\" while automatically wrapping to the next line if required. Different screen widths will allow a differing number of components to align next to each other.  The current pull request addresses this.  This does not logically apply in all scenarios.  Reactive web pages commonly address this and elastic changes can happen vertically but this change will keep this simple for now.\r\n\r\n1. Add line wrapping capability utilizing .ToTheRightMatchingTopWrapping to indicate that a component aligned to another component on the right can wrap below and align itself to the left inside of the superview (+padding).\r\n\r\n2. Add a newline capability to ensure that the newline anchor is relative to the end of the previous line which may be wrapped.  This uses .UnderMatchingLeftFollowing indicate that it must be under the tailing component to the left.   This is applicable to both align and alignAndFillWidth.\r\n\r\n3. Updated the ViewController example with the necessary line wrapping examples showing both examples, with a subsequent alignAndFill.\r\n\r\n4. Superview was using Frame instead of Bounds to determine the superview which is incorrect when the superview undergoes translations.  This was corrected.\r\n\r\n\r\n![neon-flex](https://cloud.githubusercontent.com/assets/3245781/15373541/7ca69b64-1d46-11e6-8928-d12aaa5e90f5.gif)\r\n\r\n\r\n\r\n","created_at":"2016-05-18T20:19:32Z","updated_at":"2016-05-18T20:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mamaral/Neon/pulls/33/commits","review_comments_url":"https://api.github.com/repos/mamaral/Neon/pulls/33/comments","review_comment_url":"https://api.github.com/repos/mamaral/Neon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mamaral/Neon/issues/33/comments","statuses_url":"https://api.github.com/repos/mamaral/Neon/statuses/a6e23bc9c5e2b75259f386266f3ff09853b0be11","head":{"label":"tim12s:master","ref":"master","sha":"a6e23bc9c5e2b75259f386266f3ff09853b0be11","user":{"login":"tim12s","id":3245781,"avatar_url":"https://avatars.githubusercontent.com/u/3245781?v=3","gravatar_id":"","url":"https://api.github.com/users/tim12s","html_url":"https://github.com/tim12s","followers_url":"https://api.github.com/users/tim12s/followers","following_url":"https://api.github.com/users/tim12s/following{/other_user}","gists_url":"https://api.github.com/users/tim12s/gists{/gist_id}","starred_url":"https://api.github.com/users/tim12s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim12s/subscriptions","organizations_url":"https://api.github.com/users/tim12s/orgs","repos_url":"https://api.github.com/users/tim12s/repos","events_url":"https://api.github.com/users/tim12s/events{/privacy}","received_events_url":"https://api.github.com/users/tim12s/received_events","type":"User","site_admin":false},"repo":{"id":58888864,"name":"Neon","full_name":"tim12s/Neon","owner":{"login":"tim12s","id":3245781,"avatar_url":"https://avatars.githubusercontent.com/u/3245781?v=3","gravatar_id":"","url":"https://api.github.com/users/tim12s","html_url":"https://github.com/tim12s","followers_url":"https://api.github.com/users/tim12s/followers","following_url":"https://api.github.com/users/tim12s/following{/other_user}","gists_url":"https://api.github.com/users/tim12s/gists{/gist_id}","starred_url":"https://api.github.com/users/tim12s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim12s/subscriptions","organizations_url":"https://api.github.com/users/tim12s/orgs","repos_url":"https://api.github.com/users/tim12s/repos","events_url":"https://api.github.com/users/tim12s/events{/privacy}","received_events_url":"https://api.github.com/users/tim12s/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tim12s/Neon","description":"A powerful Swift programmatic UI layout framework.","fork":true,"url":"https://api.github.com/repos/tim12s/Neon","forks_url":"https://api.github.com/repos/tim12s/Neon/forks","keys_url":"https://api.github.com/repos/tim12s/Neon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tim12s/Neon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tim12s/Neon/teams","hooks_url":"https://api.github.com/repos/tim12s/Neon/hooks","issue_events_url":"https://api.github.com/repos/tim12s/Neon/issues/events{/number}","events_url":"https://api.github.com/repos/tim12s/Neon/events","assignees_url":"https://api.github.com/repos/tim12s/Neon/assignees{/user}","branches_url":"https://api.github.com/repos/tim12s/Neon/branches{/branch}","tags_url":"https://api.github.com/repos/tim12s/Neon/tags","blobs_url":"https://api.github.com/repos/tim12s/Neon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tim12s/Neon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tim12s/Neon/git/refs{/sha}","trees_url":"https://api.github.com/repos/tim12s/Neon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tim12s/Neon/statuses/{sha}","languages_url":"https://api.github.com/repos/tim12s/Neon/languages","stargazers_url":"https://api.github.com/repos/tim12s/Neon/stargazers","contributors_url":"https://api.github.com/repos/tim12s/Neon/contributors","subscribers_url":"https://api.github.com/repos/tim12s/Neon/subscribers","subscription_url":"https://api.github.com/repos/tim12s/Neon/subscription","commits_url":"https://api.github.com/repos/tim12s/Neon/commits{/sha}","git_commits_url":"https://api.github.com/repos/tim12s/Neon/git/commits{/sha}","comments_url":"https://api.github.com/repos/tim12s/Neon/comments{/number}","issue_comment_url":"https://api.github.com/repos/tim12s/Neon/issues/comments{/number}","contents_url":"https://api.github.com/repos/tim12s/Neon/contents/{+path}","compare_url":"https://api.github.com/repos/tim12s/Neon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tim12s/Neon/merges","archive_url":"https://api.github.com/repos/tim12s/Neon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tim12s/Neon/downloads","issues_url":"https://api.github.com/repos/tim12s/Neon/issues{/number}","pulls_url":"https://api.github.com/repos/tim12s/Neon/pulls{/number}","milestones_url":"https://api.github.com/repos/tim12s/Neon/milestones{/number}","notifications_url":"https://api.github.com/repos/tim12s/Neon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tim12s/Neon/labels{/name}","releases_url":"https://api.github.com/repos/tim12s/Neon/releases{/id}","deployments_url":"https://api.github.com/repos/tim12s/Neon/deployments","created_at":"2016-05-15T22:59:36Z","updated_at":"2016-05-15T22:59:38Z","pushed_at":"2016-05-18T19:59:06Z","git_url":"git://github.com/tim12s/Neon.git","ssh_url":"git@github.com:tim12s/Neon.git","clone_url":"https://github.com/tim12s/Neon.git","svn_url":"https://github.com/tim12s/Neon","homepage":null,"size":14005,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mamaral:master","ref":"master","sha":"57c2c6abd99e6e3ae6cc531c8bb2d6714fe33d55","user":{"login":"mamaral","id":6086409,"avatar_url":"https://avatars.githubusercontent.com/u/6086409?v=3","gravatar_id":"","url":"https://api.github.com/users/mamaral","html_url":"https://github.com/mamaral","followers_url":"https://api.github.com/users/mamaral/followers","following_url":"https://api.github.com/users/mamaral/following{/other_user}","gists_url":"https://api.github.com/users/mamaral/gists{/gist_id}","starred_url":"https://api.github.com/users/mamaral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamaral/subscriptions","organizations_url":"https://api.github.com/users/mamaral/orgs","repos_url":"https://api.github.com/users/mamaral/repos","events_url":"https://api.github.com/users/mamaral/events{/privacy}","received_events_url":"https://api.github.com/users/mamaral/received_events","type":"User","site_admin":false},"repo":{"id":42832234,"name":"Neon","full_name":"mamaral/Neon","owner":{"login":"mamaral","id":6086409,"avatar_url":"https://avatars.githubusercontent.com/u/6086409?v=3","gravatar_id":"","url":"https://api.github.com/users/mamaral","html_url":"https://github.com/mamaral","followers_url":"https://api.github.com/users/mamaral/followers","following_url":"https://api.github.com/users/mamaral/following{/other_user}","gists_url":"https://api.github.com/users/mamaral/gists{/gist_id}","starred_url":"https://api.github.com/users/mamaral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamaral/subscriptions","organizations_url":"https://api.github.com/users/mamaral/orgs","repos_url":"https://api.github.com/users/mamaral/repos","events_url":"https://api.github.com/users/mamaral/events{/privacy}","received_events_url":"https://api.github.com/users/mamaral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mamaral/Neon","description":"A powerful Swift programmatic UI layout framework.","fork":false,"url":"https://api.github.com/repos/mamaral/Neon","forks_url":"https://api.github.com/repos/mamaral/Neon/forks","keys_url":"https://api.github.com/repos/mamaral/Neon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mamaral/Neon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mamaral/Neon/teams","hooks_url":"https://api.github.com/repos/mamaral/Neon/hooks","issue_events_url":"https://api.github.com/repos/mamaral/Neon/issues/events{/number}","events_url":"https://api.github.com/repos/mamaral/Neon/events","assignees_url":"https://api.github.com/repos/mamaral/Neon/assignees{/user}","branches_url":"https://api.github.com/repos/mamaral/Neon/branches{/branch}","tags_url":"https://api.github.com/repos/mamaral/Neon/tags","blobs_url":"https://api.github.com/repos/mamaral/Neon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mamaral/Neon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mamaral/Neon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mamaral/Neon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mamaral/Neon/statuses/{sha}","languages_url":"https://api.github.com/repos/mamaral/Neon/languages","stargazers_url":"https://api.github.com/repos/mamaral/Neon/stargazers","contributors_url":"https://api.github.com/repos/mamaral/Neon/contributors","subscribers_url":"https://api.github.com/repos/mamaral/Neon/subscribers","subscription_url":"https://api.github.com/repos/mamaral/Neon/subscription","commits_url":"https://api.github.com/repos/mamaral/Neon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mamaral/Neon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mamaral/Neon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mamaral/Neon/issues/comments{/number}","contents_url":"https://api.github.com/repos/mamaral/Neon/contents/{+path}","compare_url":"https://api.github.com/repos/mamaral/Neon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mamaral/Neon/merges","archive_url":"https://api.github.com/repos/mamaral/Neon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mamaral/Neon/downloads","issues_url":"https://api.github.com/repos/mamaral/Neon/issues{/number}","pulls_url":"https://api.github.com/repos/mamaral/Neon/pulls{/number}","milestones_url":"https://api.github.com/repos/mamaral/Neon/milestones{/number}","notifications_url":"https://api.github.com/repos/mamaral/Neon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mamaral/Neon/labels{/name}","releases_url":"https://api.github.com/repos/mamaral/Neon/releases{/id}","deployments_url":"https://api.github.com/repos/mamaral/Neon/deployments","created_at":"2015-09-20T22:33:01Z","updated_at":"2016-05-18T12:04:36Z","pushed_at":"2016-05-16T03:03:36Z","git_url":"git://github.com/mamaral/Neon.git","ssh_url":"git@github.com:mamaral/Neon.git","clone_url":"https://github.com/mamaral/Neon.git","svn_url":"https://github.com/mamaral/Neon","homepage":null,"size":14074,"stargazers_count":3069,"watchers_count":3069,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":242,"mirror_url":null,"open_issues_count":9,"forks":242,"open_issues":9,"watchers":3069,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mamaral/Neon/pulls/33"},"html":{"href":"https://github.com/mamaral/Neon/pull/33"},"issue":{"href":"https://api.github.com/repos/mamaral/Neon/issues/33"},"comments":{"href":"https://api.github.com/repos/mamaral/Neon/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/mamaral/Neon/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/mamaral/Neon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mamaral/Neon/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/mamaral/Neon/statuses/a6e23bc9c5e2b75259f386266f3ff09853b0be11"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":138,"deletions":3,"changed_files":4}}