{"action":"created","issue":{"url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/118","repository_url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom","labels_url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/118/comments","events_url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/118/events","html_url":"https://github.com/IntrepidPursuits/swift-wisdom/pull/118","id":218634190,"number":118,"title":"Added 'NibLoadableView' for easier loading of Nibs into placeholder Views.","user":{"login":"chow-land","id":2320777,"avatar_url":"https://avatars2.githubusercontent.com/u/2320777?v=3","gravatar_id":"","url":"https://api.github.com/users/chow-land","html_url":"https://github.com/chow-land","followers_url":"https://api.github.com/users/chow-land/followers","following_url":"https://api.github.com/users/chow-land/following{/other_user}","gists_url":"https://api.github.com/users/chow-land/gists{/gist_id}","starred_url":"https://api.github.com/users/chow-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chow-land/subscriptions","organizations_url":"https://api.github.com/users/chow-land/orgs","repos_url":"https://api.github.com/users/chow-land/repos","events_url":"https://api.github.com/users/chow-land/events{/privacy}","received_events_url":"https://api.github.com/users/chow-land/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-31T22:39:56Z","updated_at":"2017-04-07T18:11:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/pulls/118","html_url":"https://github.com/IntrepidPursuits/swift-wisdom/pull/118","diff_url":"https://github.com/IntrepidPursuits/swift-wisdom/pull/118.diff","patch_url":"https://github.com/IntrepidPursuits/swift-wisdom/pull/118.patch"},"body":" Subclassing NibLoadableView allows you to automate the loading of a Nib into a placeholder view inside another Nib, using only the Custom Class attribute.\r\n \r\nIt removes the need to perform the following manual steps every time you want a Nib that can load into a placeholder View:\r\n\r\n - Setting an outlet for the top level view\r\n - Setting 'translatesAutoresizingMaskIntoConstraints' to false\r\n - Adding constraints to fit the new view into its container\r\n - Writing boilerplate Nib loading code.\r\n\r\n The minimum amount of code required to use this would just be the inheritance line, i.e.:\r\n\r\n`YourCustomView: NibLoadableView {}`"},"comment":{"url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/comments/292611363","html_url":"https://github.com/IntrepidPursuits/swift-wisdom/pull/118#issuecomment-292611363","issue_url":"https://api.github.com/repos/IntrepidPursuits/swift-wisdom/issues/118","id":292611363,"user":{"login":"brightredchilli","id":751191,"avatar_url":"https://avatars0.githubusercontent.com/u/751191?v=3","gravatar_id":"","url":"https://api.github.com/users/brightredchilli","html_url":"https://github.com/brightredchilli","followers_url":"https://api.github.com/users/brightredchilli/followers","following_url":"https://api.github.com/users/brightredchilli/following{/other_user}","gists_url":"https://api.github.com/users/brightredchilli/gists{/gist_id}","starred_url":"https://api.github.com/users/brightredchilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightredchilli/subscriptions","organizations_url":"https://api.github.com/users/brightredchilli/orgs","repos_url":"https://api.github.com/users/brightredchilli/repos","events_url":"https://api.github.com/users/brightredchilli/events{/privacy}","received_events_url":"https://api.github.com/users/brightredchilli/received_events","type":"User","site_admin":false},"created_at":"2017-04-07T18:11:49Z","updated_at":"2017-04-07T18:11:49Z","body":"seems like\r\n```\r\n guard let topLevelObjects = Bundle.main.loadNibNamed(self.customClassString, owner: self, options: nil)\r\n```\r\n\r\nwould do it, where `customClassString` is an ibdesignable of type String."}}
{"actor":{"display_login":"brightredchilli"}}