{"action":"created","issue":{"url":"https://api.github.com/repos/smileyborg/PureLayout/issues/68","labels_url":"https://api.github.com/repos/smileyborg/PureLayout/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/smileyborg/PureLayout/issues/68/comments","events_url":"https://api.github.com/repos/smileyborg/PureLayout/issues/68/events","html_url":"https://github.com/smileyborg/PureLayout/pull/68","id":84792715,"number":68,"title":"Allow a single view to be automatically distributed","user":{"login":"pnc","id":108524,"avatar_url":"https://avatars.githubusercontent.com/u/108524?v=3","gravatar_id":"","url":"https://api.github.com/users/pnc","html_url":"https://github.com/pnc","followers_url":"https://api.github.com/users/pnc/followers","following_url":"https://api.github.com/users/pnc/following{/other_user}","gists_url":"https://api.github.com/users/pnc/gists{/gist_id}","starred_url":"https://api.github.com/users/pnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnc/subscriptions","organizations_url":"https://api.github.com/users/pnc/orgs","repos_url":"https://api.github.com/users/pnc/repos","events_url":"https://api.github.com/users/pnc/events{/privacy}","received_events_url":"https://api.github.com/users/pnc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T22:08:10Z","updated_at":"2015-06-03T22:15:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/smileyborg/PureLayout/pulls/68","html_url":"https://github.com/smileyborg/PureLayout/pull/68","diff_url":"https://github.com/smileyborg/PureLayout/pull/68.diff","patch_url":"https://github.com/smileyborg/PureLayout/pull/68.patch"},"body":"`NSArray`'s `autoDistributeViewsAlongAxis:` requires 2 views, but the code works perfectly with just a single subview! Since the `NSAssert` is from the initial commit, I thought perhaps this had been an early sanity check and not a specific design decision.\r\n\r\nI think it might make more sense to only require a single view (or none at all, in which case the method  is a no-op, monad-style) so that callers don't have to check the number of items in the array and implement different functionality in the case of a single view.\r\n\r\nI'd be happy to add a test for the new single-view case if you're open to this patch.\r\n\r\nOne use case is a view with a small but variable number of children, such as a toolbar of buttons."},"comment":{"url":"https://api.github.com/repos/smileyborg/PureLayout/issues/comments/108630402","html_url":"https://github.com/smileyborg/PureLayout/pull/68#issuecomment-108630402","issue_url":"https://api.github.com/repos/smileyborg/PureLayout/issues/68","id":108630402,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T22:15:18Z","updated_at":"2015-06-03T22:15:18Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2723260/badge)](https://coveralls.io/builds/2723260)\n\nCoverage remained the same at 73.7% when pulling **afe0b8a530522139f79b0f9b4447c36c3662459c on eleostech:no-minimum** into **0a0b4528b5ba7b3033380ff61c56eca182b25ded on smileyborg:master**.\n"}}