{"action":"created","issue":{"url":"https://api.github.com/repos/C4Framework/C4iOS/issues/251","labels_url":"https://api.github.com/repos/C4Framework/C4iOS/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/C4Framework/C4iOS/issues/251/comments","events_url":"https://api.github.com/repos/C4Framework/C4iOS/issues/251/events","html_url":"https://github.com/C4Framework/C4iOS/issues/251","id":56102821,"number":251,"title":"C4View transform flickers when animated","user":{"login":"C4Framework","id":1447498,"avatar_url":"https://avatars.githubusercontent.com/u/1447498?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Framework","html_url":"https://github.com/C4Framework","followers_url":"https://api.github.com/users/C4Framework/followers","following_url":"https://api.github.com/users/C4Framework/following{/other_user}","gists_url":"https://api.github.com/users/C4Framework/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Framework/subscriptions","organizations_url":"https://api.github.com/users/C4Framework/orgs","repos_url":"https://api.github.com/users/C4Framework/repos","events_url":"https://api.github.com/users/C4Framework/events{/privacy}","received_events_url":"https://api.github.com/users/C4Framework/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/C4Framework/C4iOS/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"aleph7","id":167236,"avatar_url":"https://avatars.githubusercontent.com/u/167236?v=3","gravatar_id":"","url":"https://api.github.com/users/aleph7","html_url":"https://github.com/aleph7","followers_url":"https://api.github.com/users/aleph7/followers","following_url":"https://api.github.com/users/aleph7/following{/other_user}","gists_url":"https://api.github.com/users/aleph7/gists{/gist_id}","starred_url":"https://api.github.com/users/aleph7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleph7/subscriptions","organizations_url":"https://api.github.com/users/aleph7/orgs","repos_url":"https://api.github.com/users/aleph7/repos","events_url":"https://api.github.com/users/aleph7/events{/privacy}","received_events_url":"https://api.github.com/users/aleph7/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-31T00:21:44Z","updated_at":"2015-01-31T05:03:02Z","closed_at":null,"body":"Applying the following:\r\n```\r\n    var container = C4View()\r\n    \r\n    override func viewDidLoad() {\r\n        container.frame = canvas.frame\r\n        \r\n        let text = C4TextShape(text: \"hello there\", font: C4Font(name: \"menlo\", size:20.0))\r\n        let circ = C4Ellipse(frame: C4Rect(0,0,100,100))\r\n        circ.origin = C4Point(100,100)\r\n        text.origin = C4Point(100,200)\r\n        \r\n        canvas.add(circ)\r\n        canvas.add(text)\r\n        container.interactionEnabled = false\r\n        canvas.add(container)\r\n        canvas.add(blur)\r\n\r\n        let anim = C4ViewAnimation(duration: 0.25) {\r\n            self.container.transform = C4Transform.makeScale(0.8, 0.8, 0)\r\n        }\r\n        \r\n        canvas.addTapGestureRecognizer { (location, state) -> () in\r\n            anim.animate()\r\n        }\r\n    }\r\n```\r\nResults in a flickering animation, like the following:\r\n\r\n![c4viewtransformflicker](https://cloud.githubusercontent.com/assets/1447498/5985778/07006810-a89c-11e4-9365-e6561dbf8a69.gif)\r\n\r\nHowever, the following:\r\n```\r\n    var container = UIView()\r\n    \r\n    override func viewDidLoad() {\r\n        container.frame = CGRect(canvas.frame)\r\n        \r\n        let text = C4TextShape(text: \"hello there\", font: C4Font(name: \"menlo\", size:20.0))\r\n        let circ = C4Ellipse(frame: C4Rect(0,0,100,100))\r\n        circ.origin = C4Point(100,100)\r\n        text.origin = C4Point(100,200)\r\n        \r\n        container.add(circ)\r\n        container.add(text)\r\n        container.userInteractionEnabled = false\r\n        canvas.add(container)\r\n\r\n        let anim = C4ViewAnimation(duration: 0.25) {\r\n            self.container.transform = C4Transform.makeScale(0.8, 0.8, 0).affineTransform\r\n        }\r\n        \r\n        canvas.addTapGestureRecognizer { (location, state) -> () in\r\n            anim.animate()\r\n        }\r\n    }\r\n```\r\nCreates a smooth animation, like this movie shows:\r\n\r\n![uiviewtransform](https://cloud.githubusercontent.com/assets/1447498/5985763/bf9ca614-a89b-11e4-9846-71c2a8dd62a2.gif)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/C4Framework/C4iOS/issues/comments/72305003","html_url":"https://github.com/C4Framework/C4iOS/issues/251#issuecomment-72305003","issue_url":"https://api.github.com/repos/C4Framework/C4iOS/issues/251","id":72305003,"user":{"login":"C4Framework","id":1447498,"avatar_url":"https://avatars.githubusercontent.com/u/1447498?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Framework","html_url":"https://github.com/C4Framework","followers_url":"https://api.github.com/users/C4Framework/followers","following_url":"https://api.github.com/users/C4Framework/following{/other_user}","gists_url":"https://api.github.com/users/C4Framework/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Framework/subscriptions","organizations_url":"https://api.github.com/users/C4Framework/orgs","repos_url":"https://api.github.com/users/C4Framework/repos","events_url":"https://api.github.com/users/C4Framework/events{/privacy}","received_events_url":"https://api.github.com/users/C4Framework/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T05:03:02Z","updated_at":"2015-01-31T05:03:02Z","body":"I found that switching from:\r\n\r\n```\r\nview.layer.transform = newValue.transform3D\r\n```\r\n\r\nto \r\n\r\n```\r\nview.transform = newValue.affineTransforme\r\n```\r\n\r\nFixed the strange behaviour, but I don't think this is the proper solution."}}