{"action":"created","issue":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/1105","repository_url":"https://api.github.com/repos/CosmicMind/Material","labels_url":"https://api.github.com/repos/CosmicMind/Material/issues/1105/labels{/name}","comments_url":"https://api.github.com/repos/CosmicMind/Material/issues/1105/comments","events_url":"https://api.github.com/repos/CosmicMind/Material/issues/1105/events","html_url":"https://github.com/CosmicMind/Material/issues/1105","id":336853688,"node_id":"MDU6SXNzdWUzMzY4NTM2ODg=","number":1105,"title":"Setting default state not working","user":{"login":"albertml","id":8196166,"node_id":"MDQ6VXNlcjgxOTYxNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/8196166?v=4","gravatar_id":"","url":"https://api.github.com/users/albertml","html_url":"https://github.com/albertml","followers_url":"https://api.github.com/users/albertml/followers","following_url":"https://api.github.com/users/albertml/following{/other_user}","gists_url":"https://api.github.com/users/albertml/gists{/gist_id}","starred_url":"https://api.github.com/users/albertml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertml/subscriptions","organizations_url":"https://api.github.com/users/albertml/orgs","repos_url":"https://api.github.com/users/albertml/repos","events_url":"https://api.github.com/users/albertml/events{/privacy}","received_events_url":"https://api.github.com/users/albertml/received_events","type":"User","site_admin":false},"labels":[{"id":717199020,"node_id":"MDU6TGFiZWw3MTcxOTkwMjA=","url":"https://api.github.com/repos/CosmicMind/Material/labels/good%20first%20issue","name":"good first issue","color":"9546ba","default":true},{"id":251382996,"node_id":"MDU6TGFiZWwyNTEzODI5OTY=","url":"https://api.github.com/repos/CosmicMind/Material/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":743426827,"node_id":"MDU6TGFiZWw3NDM0MjY4Mjc=","url":"https://api.github.com/repos/CosmicMind/Material/labels/material","name":"material","color":"000000","default":false}],"state":"closed","locked":false,"assignee":{"login":"danieldahan","id":9982123,"node_id":"MDQ6VXNlcjk5ODIxMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9982123?v=4","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,"node_id":"MDQ6VXNlcjk5ODIxMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9982123?v=4","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":1,"created_at":"2018-06-29T03:48:57Z","updated_at":"2018-07-02T07:09:16Z","closed_at":"2018-06-29T14:33:14Z","author_association":"NONE","body":"I write this code in viewDidLoad to save default state but its not working. Please simulate thanks\r\n\r\nlocalizationSwitch.switchState = Localize.currentLanguage() == \"en\" ? .on : .off"},"comment":{"url":"https://api.github.com/repos/CosmicMind/Material/issues/comments/401692126","html_url":"https://github.com/CosmicMind/Material/issues/1105#issuecomment-401692126","issue_url":"https://api.github.com/repos/CosmicMind/Material/issues/1105","id":401692126,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTY5MjEyNg==","user":{"login":"albertml","id":8196166,"node_id":"MDQ6VXNlcjgxOTYxNjY=","avatar_url":"https://avatars1.githubusercontent.com/u/8196166?v=4","gravatar_id":"","url":"https://api.github.com/users/albertml","html_url":"https://github.com/albertml","followers_url":"https://api.github.com/users/albertml/followers","following_url":"https://api.github.com/users/albertml/following{/other_user}","gists_url":"https://api.github.com/users/albertml/gists{/gist_id}","starred_url":"https://api.github.com/users/albertml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertml/subscriptions","organizations_url":"https://api.github.com/users/albertml/orgs","repos_url":"https://api.github.com/users/albertml/repos","events_url":"https://api.github.com/users/albertml/events{/privacy}","received_events_url":"https://api.github.com/users/albertml/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T07:09:16Z","updated_at":"2018-07-02T07:09:16Z","author_association":"NONE","body":"The switch.. I set the state of the switch to off and exit the app. But when I reopen the app the switch state value is off which is correct but the problem is the Switch UI. I want the UI when it set to off to be like this \r\n![screen shot 2018-07-02 at 3 06 38 pm](https://user-images.githubusercontent.com/8196166/42149643-9e438392-7e09-11e8-951f-6d23767b4f64.png) but it result like this \r\n![screen shot 2018-07-02 at 3 07 04 pm](https://user-images.githubusercontent.com/8196166/42149658-aa388972-7e09-11e8-84d3-ad70b621d0c6.png). This is not the ON status of my switch. The ON status of my switch is the big circle color is white.\r\n\r\n"}}
{"actor":{"display_login":"albertml"}}