{"action":"created","issue":{"url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/1","repository_url":"https://api.github.com/repos/RACCommunity/ReactiveCollections","labels_url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/1/comments","events_url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/1/events","html_url":"https://github.com/RACCommunity/ReactiveCollections/pull/1","id":194467951,"number":1,"title":"👷 Placing the first stone","user":{"login":"dmcrodrigues","id":1098602,"avatar_url":"https://avatars.githubusercontent.com/u/1098602?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcrodrigues","html_url":"https://github.com/dmcrodrigues","followers_url":"https://api.github.com/users/dmcrodrigues/followers","following_url":"https://api.github.com/users/dmcrodrigues/following{/other_user}","gists_url":"https://api.github.com/users/dmcrodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcrodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcrodrigues/subscriptions","organizations_url":"https://api.github.com/users/dmcrodrigues/orgs","repos_url":"https://api.github.com/users/dmcrodrigues/repos","events_url":"https://api.github.com/users/dmcrodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/dmcrodrigues/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":39,"created_at":"2016-12-08T23:01:46Z","updated_at":"2016-12-21T17:32:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/pulls/1","html_url":"https://github.com/RACCommunity/ReactiveCollections/pull/1","diff_url":"https://github.com/RACCommunity/ReactiveCollections/pull/1.diff","patch_url":"https://github.com/RACCommunity/ReactiveCollections/pull/1.patch"},"body":"This introduces a `ReactiveArray` which can be observed to track each change made, insertions and removals. This kind of collection can be quite useful to update `UITableView`'s and `UICollectionView`'s in-place without forcing a heavy `reloadData` and which can, in the end, improve the user experience with specific animations to highlight only those changes.\r\n\r\nThe idea is mimicking Swift's `Array` API so it can be used without having any special criteria in consideration and simply enable observation of each change in the array. To achieve that it currently implements:\r\n- `MutableCollection`\r\n- `RandomAccessCollection`\r\n- `RangeReplaceableCollection`\r\n- `ExpressibleByArrayLiteral`\r\n\r\nTo enable observation, `ReactiveArray` provides a signal which sends information about every change performed in the array.\r\n\r\n```swift\r\nenum Change<T> {\r\n    case insert(element: T, at: Int)\r\n    case remove(element: T, at: Int)\r\n}\r\n\r\nlet signal: Signal<[Change<T>], NoError>\r\n```\r\n\r\nUpdates in the array, e.g. replacing an element by another, are represented by a removal of that element followed by an insertion of the new element. This can be improved by merging operations around the same index into a new change, `.update`, but I think we can discuss and possibly introduce it in a later moment as a refinement.\r\n\r\nThis was originally suggested and discussed in https://github.com/RACCommunity/contributors/issues/3."},"comment":{"url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/comments/268586398","html_url":"https://github.com/RACCommunity/ReactiveCollections/pull/1#issuecomment-268586398","issue_url":"https://api.github.com/repos/RACCommunity/ReactiveCollections/issues/1","id":268586398,"user":{"login":"RuiAAPeres","id":949286,"avatar_url":"https://avatars.githubusercontent.com/u/949286?v=3","gravatar_id":"","url":"https://api.github.com/users/RuiAAPeres","html_url":"https://github.com/RuiAAPeres","followers_url":"https://api.github.com/users/RuiAAPeres/followers","following_url":"https://api.github.com/users/RuiAAPeres/following{/other_user}","gists_url":"https://api.github.com/users/RuiAAPeres/gists{/gist_id}","starred_url":"https://api.github.com/users/RuiAAPeres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuiAAPeres/subscriptions","organizations_url":"https://api.github.com/users/RuiAAPeres/orgs","repos_url":"https://api.github.com/users/RuiAAPeres/repos","events_url":"https://api.github.com/users/RuiAAPeres/events{/privacy}","received_events_url":"https://api.github.com/users/RuiAAPeres/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T17:32:31Z","updated_at":"2016-12-21T17:32:31Z","body":"@andersio  @dmcrodrigues could we agree on something simple that works as is and then for other applications (tables + collections) iterate over the base? It seems that this is going back and forward without any concrete result, which creates frustration for all the parties involved. "}}
{"actor":{"display_login":"RuiAAPeres"}}