{"action":"created","issue":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/624","repository_url":"https://api.github.com/repos/CosmicMind/Material","labels_url":"https://api.github.com/repos/CosmicMind/Material/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/CosmicMind/Material/issues/624/comments","events_url":"https://api.github.com/repos/CosmicMind/Material/issues/624/events","html_url":"https://github.com/CosmicMind/Material/issues/624","id":193641094,"number":624,"title":"Switch calls valueChanged even when set programatically","user":{"login":"sovata8","id":16277996,"avatar_url":"https://avatars.githubusercontent.com/u/16277996?v=3","gravatar_id":"","url":"https://api.github.com/users/sovata8","html_url":"https://github.com/sovata8","followers_url":"https://api.github.com/users/sovata8/followers","following_url":"https://api.github.com/users/sovata8/following{/other_user}","gists_url":"https://api.github.com/users/sovata8/gists{/gist_id}","starred_url":"https://api.github.com/users/sovata8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sovata8/subscriptions","organizations_url":"https://api.github.com/users/sovata8/orgs","repos_url":"https://api.github.com/users/sovata8/repos","events_url":"https://api.github.com/users/sovata8/events{/privacy}","received_events_url":"https://api.github.com/users/sovata8/received_events","type":"User","site_admin":false},"labels":[{"id":251382995,"url":"https://api.github.com/repos/CosmicMind/Material/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":386140313,"url":"https://api.github.com/repos/CosmicMind/Material/labels/feature%20request","name":"feature request","color":"d4c5f9","default":false},{"id":251382998,"url":"https://api.github.com/repos/CosmicMind/Material/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"danieldahan","id":9982123,"avatar_url":"https://avatars.githubusercontent.com/u/9982123?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldahan","html_url":"https://github.com/danieldahan","followers_url":"https://api.github.com/users/danieldahan/followers","following_url":"https://api.github.com/users/danieldahan/following{/other_user}","gists_url":"https://api.github.com/users/danieldahan/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldahan/subscriptions","organizations_url":"https://api.github.com/users/danieldahan/orgs","repos_url":"https://api.github.com/users/danieldahan/repos","events_url":"https://api.github.com/users/danieldahan/events{/privacy}","received_events_url":"https://api.github.com/users/danieldahan/received_events","type":"User","site_admin":false},"assignees":[{"login":"danieldahan","id":9982123,"avatar_url":"https://avatars.githubusercontent.com/u/9982123?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldahan","html_url":"https://github.com/danieldahan","followers_url":"https://api.github.com/users/danieldahan/followers","following_url":"https://api.github.com/users/danieldahan/following{/other_user}","gists_url":"https://api.github.com/users/danieldahan/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldahan/subscriptions","organizations_url":"https://api.github.com/users/danieldahan/orgs","repos_url":"https://api.github.com/users/danieldahan/repos","events_url":"https://api.github.com/users/danieldahan/events{/privacy}","received_events_url":"https://api.github.com/users/danieldahan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2016-12-05T23:30:12Z","updated_at":"2016-12-16T04:08:48Z","closed_at":null,"body":"I am having some troubled with a `Switch`.\r\nI need to set its state, without any side-effects (such as a call to `valueChanged`)\r\n\r\nI am setting it programmatically, using the `setOn` (which from what I can see calls `setSwitchState`). In `setSwitchState` I see that it calls the action for event 'valueChanged'. Is this how it is supposed to be? I thought that these `UIControl` calls should only happen for user-interaction-initiated events, not when doing things programmatically. How do I change the switch without triggering `valueChanged`?"},"comment":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/comments/267512632","html_url":"https://github.com/CosmicMind/Material/issues/624#issuecomment-267512632","issue_url":"https://api.github.com/repos/CosmicMind/Material/issues/624","id":267512632,"user":{"login":"danieldahan","id":9982123,"avatar_url":"https://avatars.githubusercontent.com/u/9982123?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldahan","html_url":"https://github.com/danieldahan","followers_url":"https://api.github.com/users/danieldahan/followers","following_url":"https://api.github.com/users/danieldahan/following{/other_user}","gists_url":"https://api.github.com/users/danieldahan/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldahan/subscriptions","organizations_url":"https://api.github.com/users/danieldahan/orgs","repos_url":"https://api.github.com/users/danieldahan/repos","events_url":"https://api.github.com/users/danieldahan/events{/privacy}","received_events_url":"https://api.github.com/users/danieldahan/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T04:08:48Z","updated_at":"2016-12-16T04:08:48Z","body":"Updated development with your suggestions :) I will finish the other controls tomorrow with a release. "}}
{"actor":{"display_login":"danieldahan"}}