{"action":"created","issue":{"url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/25","repository_url":"https://api.github.com/repos/paulrolfe/PARTagPicker","labels_url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/25/comments","events_url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/25/events","html_url":"https://github.com/paulrolfe/PARTagPicker/issues/25","id":192430362,"number":25,"title":"adding the same value twice from alltags causes a crash","user":{"login":"viktorwillmann","id":14384625,"avatar_url":"https://avatars.githubusercontent.com/u/14384625?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorwillmann","html_url":"https://github.com/viktorwillmann","followers_url":"https://api.github.com/users/viktorwillmann/followers","following_url":"https://api.github.com/users/viktorwillmann/following{/other_user}","gists_url":"https://api.github.com/users/viktorwillmann/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorwillmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorwillmann/subscriptions","organizations_url":"https://api.github.com/users/viktorwillmann/orgs","repos_url":"https://api.github.com/users/viktorwillmann/repos","events_url":"https://api.github.com/users/viktorwillmann/events{/privacy}","received_events_url":"https://api.github.com/users/viktorwillmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-29T23:19:42Z","updated_at":"2016-11-30T12:31:05Z","closed_at":null,"body":"If you try to add the same Tag from your proposed alltags to your chosenTags twice right after the first one was added, you get a crash. This can happen if you fill your proposed tags from your backend.\r\n\r\n_In my case if I type \"su\" my backend will give me \"sun\" and \"sunny\" back. if i add the tag \"sun\" and keep typing \"sun\" i get again \"sun\" and \"sunny\", where i can add Sun again to my chosenTags._ \r\n\r\n```\r\n*** Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:], \r\n\r\n/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.5.2/UICollectionView.m:5585\r\n\r\n2016-11-30 00:09:09.964160 Inline App[2760:770432] *** Terminating app due to uncaught \r\n\r\nexception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in \r\n\r\nsection 0.  The number of items contained in an existing section after the update (2) must be equal to \r\n\r\nthe number of items contained in that section before the update (2), plus or minus the number of items \r\n\r\ninserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of items \r\n\r\nmoved into or out of that section (0 moved in, 0 moved out).'\r\n```"},"comment":{"url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/comments/263862407","html_url":"https://github.com/paulrolfe/PARTagPicker/issues/25#issuecomment-263862407","issue_url":"https://api.github.com/repos/paulrolfe/PARTagPicker/issues/25","id":263862407,"user":{"login":"viktorwillmann","id":14384625,"avatar_url":"https://avatars.githubusercontent.com/u/14384625?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorwillmann","html_url":"https://github.com/viktorwillmann","followers_url":"https://api.github.com/users/viktorwillmann/followers","following_url":"https://api.github.com/users/viktorwillmann/following{/other_user}","gists_url":"https://api.github.com/users/viktorwillmann/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorwillmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorwillmann/subscriptions","organizations_url":"https://api.github.com/users/viktorwillmann/orgs","repos_url":"https://api.github.com/users/viktorwillmann/repos","events_url":"https://api.github.com/users/viktorwillmann/events{/privacy}","received_events_url":"https://api.github.com/users/viktorwillmann/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T12:31:05Z","updated_at":"2016-11-30T12:31:05Z","body":"The allTags problem seems to work if I don't add new allTags via append but with tagPicker.allTags = myAllTags approach. Now the same happens if I add a tag manually by code with chosenTags.add(string) and then add an hashtag from the updated AllTags. Something with the index path is wrong "}}
{"actor":{"display_login":"viktorwillmann"}}