{"action":"created","issue":{"url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/37","labels_url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/37/comments","events_url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/37/events","html_url":"https://github.com/JakeLin/IBAnimatable/pull/37","id":127104810,"number":37,"title":"Add MaskType.Star.","user":{"login":"lexrus","id":219689,"avatar_url":"https://avatars.githubusercontent.com/u/219689?v=3","gravatar_id":"","url":"https://api.github.com/users/lexrus","html_url":"https://github.com/lexrus","followers_url":"https://api.github.com/users/lexrus/followers","following_url":"https://api.github.com/users/lexrus/following{/other_user}","gists_url":"https://api.github.com/users/lexrus/gists{/gist_id}","starred_url":"https://api.github.com/users/lexrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexrus/subscriptions","organizations_url":"https://api.github.com/users/lexrus/orgs","repos_url":"https://api.github.com/users/lexrus/repos","events_url":"https://api.github.com/users/lexrus/events{/privacy}","received_events_url":"https://api.github.com/users/lexrus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T16:06:28Z","updated_at":"2016-01-17T23:23:37Z","closed_at":"2016-01-17T23:18:17Z","pull_request":{"url":"https://api.github.com/repos/JakeLin/IBAnimatable/pulls/37","html_url":"https://github.com/JakeLin/IBAnimatable/pull/37","diff_url":"https://github.com/JakeLin/IBAnimatable/pull/37.diff","patch_url":"https://github.com/JakeLin/IBAnimatable/pull/37.patch"},"body":"Add `.Star`, `.Star4`, `.Star6`, `.Star8`, `.Star10` to MaskType. We can mask views like this:\r\n<img width=\"557\" alt=\"screen shot 2016-01-17 at 11 51 31 pm\" src=\"https://cloud.githubusercontent.com/assets/219689/12378354/be6c4b56-bd75-11e5-897b-688259dc8ed7.png\">\r\n\r\nConclusion:\r\n1. These stars are masked with CAShapeLayer which mask shadows as well. Thus we can't have shadows under star views. (Stars have no shadow in the real world neither. 🤓)\r\n2. Border of star is not rendered properly. I already have a workaround in my Playground which is not suitable(maybe next PR) for IBAnimatable:\r\n<img width=\"284\" alt=\"screen shot 2016-01-18 at 12 03 04 am\" src=\"https://cloud.githubusercontent.com/assets/219689/12378391/e0822854-bd76-11e5-8d87-4bf334b99dc2.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/comments/172394971","html_url":"https://github.com/JakeLin/IBAnimatable/pull/37#issuecomment-172394971","issue_url":"https://api.github.com/repos/JakeLin/IBAnimatable/issues/37","id":172394971,"user":{"login":"JakeLin","id":573856,"avatar_url":"https://avatars.githubusercontent.com/u/573856?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeLin","html_url":"https://github.com/JakeLin","followers_url":"https://api.github.com/users/JakeLin/followers","following_url":"https://api.github.com/users/JakeLin/following{/other_user}","gists_url":"https://api.github.com/users/JakeLin/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeLin/subscriptions","organizations_url":"https://api.github.com/users/JakeLin/orgs","repos_url":"https://api.github.com/users/JakeLin/repos","events_url":"https://api.github.com/users/JakeLin/events{/privacy}","received_events_url":"https://api.github.com/users/JakeLin/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T23:23:36Z","updated_at":"2016-01-17T23:23:36Z","body":"Thanks you very much again. May have another sub `CAShapeLayer` to support a fake shadows, but I don't want to over engineer that. I think current solution is very good. :+1: "}}