{"action":"created","issue":{"url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/12","labels_url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/12/comments","events_url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/12/events","html_url":"https://github.com/bfeher/BFPaperTableViewCell/issues/12","id":67906606,"number":12,"title":"Rounded corners on table cell","user":{"login":"ArtworkAD","id":524580,"avatar_url":"https://avatars.githubusercontent.com/u/524580?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtworkAD","html_url":"https://github.com/ArtworkAD","followers_url":"https://api.github.com/users/ArtworkAD/followers","following_url":"https://api.github.com/users/ArtworkAD/following{/other_user}","gists_url":"https://api.github.com/users/ArtworkAD/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtworkAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtworkAD/subscriptions","organizations_url":"https://api.github.com/users/ArtworkAD/orgs","repos_url":"https://api.github.com/users/ArtworkAD/repos","events_url":"https://api.github.com/users/ArtworkAD/events{/privacy}","received_events_url":"https://api.github.com/users/ArtworkAD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-12T11:57:12Z","updated_at":"2015-04-13T00:55:18Z","closed_at":null,"body":"I have subclassed BFPaperTableViewCell and applied rounded corners in drawRect:\r\n\r\n    UIBezierPath(roundedRect: rect, byRoundingCorners: UIRectCorner.AllCorners, cornerRadii: CGSizeMake(2, 2)).fill()\r\n\r\nThe problem is that the ripple effect fills the entire cell and removes the rounded corners. Any idea how to solve this? @bfeher \r\n"},"comment":{"url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/comments/92158201","html_url":"https://github.com/bfeher/BFPaperTableViewCell/issues/12#issuecomment-92158201","issue_url":"https://api.github.com/repos/bfeher/BFPaperTableViewCell/issues/12","id":92158201,"user":{"login":"bfeher","id":3466708,"avatar_url":"https://avatars.githubusercontent.com/u/3466708?v=3","gravatar_id":"","url":"https://api.github.com/users/bfeher","html_url":"https://github.com/bfeher","followers_url":"https://api.github.com/users/bfeher/followers","following_url":"https://api.github.com/users/bfeher/following{/other_user}","gists_url":"https://api.github.com/users/bfeher/gists{/gist_id}","starred_url":"https://api.github.com/users/bfeher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfeher/subscriptions","organizations_url":"https://api.github.com/users/bfeher/orgs","repos_url":"https://api.github.com/users/bfeher/repos","events_url":"https://api.github.com/users/bfeher/events{/privacy}","received_events_url":"https://api.github.com/users/bfeher/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T00:55:18Z","updated_at":"2015-04-13T00:55:18Z","body":"Update: It seems to work for most values and breaks for only a very few. For example, in the demo app with cells of height 64, after setting the self.layer.cornerRadius property in the subclass of BFPaperTableViewCell, it works for all values except the range [21, 31]. I really have no idea why its breaking for those values and only those values. I'll keep looking into it and try to implement a fix. Until then, please try setting the .layer.cornerRadius property in your code after setting the frame with drawRect."}}