{"action":"created","issue":{"url":"https://api.github.com/repos/eBay/NMessenger/issues/175","repository_url":"https://api.github.com/repos/eBay/NMessenger","labels_url":"https://api.github.com/repos/eBay/NMessenger/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/eBay/NMessenger/issues/175/comments","events_url":"https://api.github.com/repos/eBay/NMessenger/issues/175/events","html_url":"https://github.com/eBay/NMessenger/issues/175","id":274135725,"number":175,"title":"How to round Image in Avatar?","user":{"login":"dannogo","id":11019369,"avatar_url":"https://avatars2.githubusercontent.com/u/11019369?v=4","gravatar_id":"","url":"https://api.github.com/users/dannogo","html_url":"https://github.com/dannogo","followers_url":"https://api.github.com/users/dannogo/followers","following_url":"https://api.github.com/users/dannogo/following{/other_user}","gists_url":"https://api.github.com/users/dannogo/gists{/gist_id}","starred_url":"https://api.github.com/users/dannogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannogo/subscriptions","organizations_url":"https://api.github.com/users/dannogo/orgs","repos_url":"https://api.github.com/users/dannogo/repos","events_url":"https://api.github.com/users/dannogo/events{/privacy}","received_events_url":"https://api.github.com/users/dannogo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T12:15:33Z","updated_at":"2017-11-15T21:44:45Z","closed_at":null,"author_association":"NONE","body":"Here is my code:\r\n\r\n\r\nprivate func createAvatar()->ASImageNode {\r\n        let avatar = ASImageNode()\r\n        avatar.backgroundColor = UIColor.lightGray\r\n        let side: CGFloat = 40\r\n        avatar.style.preferredSize = CGSize(width: side, height: side)\r\n        avatar.image = UIImage(named: \"cartoon_chick\")\r\n        avatar.layer.cornerRadius = side/2\r\n        return avatar\r\n    }\r\n\r\nEven though I set value to cornerRadius my avatar images still square. How to fix it?"},"comment":{"url":"https://api.github.com/repos/eBay/NMessenger/issues/comments/344738611","html_url":"https://github.com/eBay/NMessenger/issues/175#issuecomment-344738611","issue_url":"https://api.github.com/repos/eBay/NMessenger/issues/175","id":344738611,"user":{"login":"dodikk","id":396451,"avatar_url":"https://avatars0.githubusercontent.com/u/396451?v=4","gravatar_id":"","url":"https://api.github.com/users/dodikk","html_url":"https://github.com/dodikk","followers_url":"https://api.github.com/users/dodikk/followers","following_url":"https://api.github.com/users/dodikk/following{/other_user}","gists_url":"https://api.github.com/users/dodikk/gists{/gist_id}","starred_url":"https://api.github.com/users/dodikk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodikk/subscriptions","organizations_url":"https://api.github.com/users/dodikk/orgs","repos_url":"https://api.github.com/users/dodikk/repos","events_url":"https://api.github.com/users/dodikk/events{/privacy}","received_events_url":"https://api.github.com/users/dodikk/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T21:44:44Z","updated_at":"2017-11-15T21:44:44Z","author_association":"NONE","body":"@dannogo , here is the solution https://github.com/facebookarchive/AsyncDisplayKit/issues/90\r\nPlease close this issue.\r\n\r\nP.S.\r\nIt's rather an AsyncDisplayKit question and it is not related to NMessenger\r\nPlease take time googling and reading manuals next time.\r\n\r\n"}}
{"actor":{"display_login":"dodikk"}}