{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/792","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/792/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/792/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/792","id":114017452,"number":792,"title":"Can't add or remove nodes intuitively using new ASLayoutSpec","user":{"login":"aaronschubert0","id":9281756,"avatar_url":"https://avatars.githubusercontent.com/u/9281756?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronschubert0","html_url":"https://github.com/aaronschubert0","followers_url":"https://api.github.com/users/aaronschubert0/followers","following_url":"https://api.github.com/users/aaronschubert0/following{/other_user}","gists_url":"https://api.github.com/users/aaronschubert0/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronschubert0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronschubert0/subscriptions","organizations_url":"https://api.github.com/users/aaronschubert0/orgs","repos_url":"https://api.github.com/users/aaronschubert0/repos","events_url":"https://api.github.com/users/aaronschubert0/events{/privacy}","received_events_url":"https://api.github.com/users/aaronschubert0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-29T10:06:53Z","updated_at":"2015-11-02T20:04:18Z","closed_at":"2015-11-02T20:04:18Z","body":"Hi, I've been playing round with the new layout using the Kittens example project. The new layout api is great but coming from ComponentKit, something that has stump me immediately is the ability to easily add/remove nodes. I had assumed that I could just alter the array that is passed to `ASStackLayoutSpec` like so (KittenNode.mm):\r\n```\r\n  [stackSpec setChildren:!_swappedTextAndImage ? @[_imageNode, _textNode] : @[_textNode, _imageNode, _secondImageNode]];\r\n```\r\nThis works in ComponentKit, but in ASDK the node is either not removed or added but the layout isn't recalculated properly. Are there other methods to achieve this or is this supposed to work?"}}