{"action":"created","issue":{"url":"https://api.github.com/repos/horitaku46/Serrata/issues/2","repository_url":"https://api.github.com/repos/horitaku46/Serrata","labels_url":"https://api.github.com/repos/horitaku46/Serrata/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/horitaku46/Serrata/issues/2/comments","events_url":"https://api.github.com/repos/horitaku46/Serrata/issues/2/events","html_url":"https://github.com/horitaku46/Serrata/issues/2","id":300035186,"number":2,"title":"Why to override layoutSubviews method in SlideLeafCell","user":{"login":"Stmol","id":740892,"avatar_url":"https://avatars1.githubusercontent.com/u/740892?v=4","gravatar_id":"","url":"https://api.github.com/users/Stmol","html_url":"https://github.com/Stmol","followers_url":"https://api.github.com/users/Stmol/followers","following_url":"https://api.github.com/users/Stmol/following{/other_user}","gists_url":"https://api.github.com/users/Stmol/gists{/gist_id}","starred_url":"https://api.github.com/users/Stmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stmol/subscriptions","organizations_url":"https://api.github.com/users/Stmol/orgs","repos_url":"https://api.github.com/users/Stmol/repos","events_url":"https://api.github.com/users/Stmol/events{/privacy}","received_events_url":"https://api.github.com/users/Stmol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-25T15:31:50Z","updated_at":"2018-03-25T15:19:43Z","closed_at":null,"author_association":"NONE","body":"https://github.com/horitaku46/Serrata/blob/88c2d5fadf1e1eb745f407b8232b33c89931d107/Serrata/Sources/SlideLeafCell.swift#L78\r\n\r\n@horitaku46 in what case do you think we need to refresh subviews of the `SlideLeafCell`?\r\n```\r\nif let image = imageView.image {\r\n       scrollView.setZoomScale(1, animated: false)\r\n       calcImageViewFrame(image)\r\n}\r\n```\r\n\r\nI found the case when it is called after double tap and the imageView inside `SlideLeafCell` is redrawn:\r\nhttps://imgur.com/a/Ej3d4\r\n\r\nIn the video you can see that `layoutSubviews()` is called after I used `setNeedsStatusBarAppearanceUpdate()` and instead of to zoom, imageView is redrawn."},"comment":{"url":"https://api.github.com/repos/horitaku46/Serrata/issues/comments/375978214","html_url":"https://github.com/horitaku46/Serrata/issues/2#issuecomment-375978214","issue_url":"https://api.github.com/repos/horitaku46/Serrata/issues/2","id":375978214,"user":{"login":"Stmol","id":740892,"avatar_url":"https://avatars1.githubusercontent.com/u/740892?v=4","gravatar_id":"","url":"https://api.github.com/users/Stmol","html_url":"https://github.com/Stmol","followers_url":"https://api.github.com/users/Stmol/followers","following_url":"https://api.github.com/users/Stmol/following{/other_user}","gists_url":"https://api.github.com/users/Stmol/gists{/gist_id}","starred_url":"https://api.github.com/users/Stmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stmol/subscriptions","organizations_url":"https://api.github.com/users/Stmol/orgs","repos_url":"https://api.github.com/users/Stmol/repos","events_url":"https://api.github.com/users/Stmol/events{/privacy}","received_events_url":"https://api.github.com/users/Stmol/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T15:19:43Z","updated_at":"2018-03-25T15:19:43Z","author_association":"NONE","body":"thank you very much 👍 "}}
{"actor":{"display_login":"Stmol"}}