{"action":"created","issue":{"url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/10","labels_url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/10/comments","events_url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/10/events","html_url":"https://github.com/hiragram/YHImageViewer/issues/10","id":103889721,"number":10,"title":"image grows from top-left, not center like animation in README","user":{"login":"mmarkman","id":3653307,"avatar_url":"https://avatars.githubusercontent.com/u/3653307?v=3","gravatar_id":"","url":"https://api.github.com/users/mmarkman","html_url":"https://github.com/mmarkman","followers_url":"https://api.github.com/users/mmarkman/followers","following_url":"https://api.github.com/users/mmarkman/following{/other_user}","gists_url":"https://api.github.com/users/mmarkman/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkman/subscriptions","organizations_url":"https://api.github.com/users/mmarkman/orgs","repos_url":"https://api.github.com/users/mmarkman/repos","events_url":"https://api.github.com/users/mmarkman/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hiragram/YHImageViewer/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-29T23:44:30Z","updated_at":"2015-09-08T20:30:51Z","closed_at":null,"body":"When clicking a YHImageViewer, it seems to zoom/grow to fit the screen from the top-left corner. When closing from a tap, it shrinks into the top-left again. \r\n\r\nI think the intended behavior is to grow in the center of the screen, then shrink into the center. This style is shown in the README of this repo. Do I need to set some variable to center? \r\n\r\nScreenshot of this happening on close:\r\n\r\n![ios simulator screen shot aug 29 2015 7 43 03 pm](https://cloud.githubusercontent.com/assets/3653307/9565019/45068014-4e86-11e5-8f4d-67027b4ef934.png)\r\n"},"comment":{"url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/comments/138690628","html_url":"https://github.com/hiragram/YHImageViewer/issues/10#issuecomment-138690628","issue_url":"https://api.github.com/repos/hiragram/YHImageViewer/issues/10","id":138690628,"user":{"login":"hiragram","id":3433324,"avatar_url":"https://avatars.githubusercontent.com/u/3433324?v=3","gravatar_id":"","url":"https://api.github.com/users/hiragram","html_url":"https://github.com/hiragram","followers_url":"https://api.github.com/users/hiragram/followers","following_url":"https://api.github.com/users/hiragram/following{/other_user}","gists_url":"https://api.github.com/users/hiragram/gists{/gist_id}","starred_url":"https://api.github.com/users/hiragram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiragram/subscriptions","organizations_url":"https://api.github.com/users/hiragram/orgs","repos_url":"https://api.github.com/users/hiragram/repos","events_url":"https://api.github.com/users/hiragram/events{/privacy}","received_events_url":"https://api.github.com/users/hiragram/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T20:30:51Z","updated_at":"2015-09-08T20:30:51Z","body":"@mmarkman thanks.\r\n\r\nWhen imageViewer.show() is called, has imageViewForDetail appeared on screen?\r\n\r\nIf it hasn't , imageView animating from / to top-left is correct behavior.\r\nIf you want imageViewForDetail to come from center of screen, you should set imageViewForDetail.frame to center of screen."}}