{"id":22076484,"url":"https://github.com/codecademy/storyboardxibcontroller","last_synced_at":"2025-07-24T13:30:57.069Z","repository":{"id":15652584,"uuid":"18389881","full_name":"Codecademy/StoryboardXibController","owner":"Codecademy","description":"a View Controller for loading Xibs from your Storyboards","archived":false,"fork":false,"pushed_at":"2022-04-05T11:49:52.000Z","size":201,"stargazers_count":7,"open_issues_count":3,"forks_count":5,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-09-19T00:02:36.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codecademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-03T03:20:45.000Z","updated_at":"2022-04-05T11:49:56.000Z","dependencies_parsed_at":"2022-09-12T22:00:40.648Z","dependency_job_id":null,"html_url":"https://github.com/Codecademy/StoryboardXibController","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2FStoryboardXibController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2FStoryboardXibController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2FStoryboardXibController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2FStoryboardXibController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codecademy","download_url":"https://codeload.github.com/Codecademy/StoryboardXibController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227441011,"owners_count":17776660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T22:14:49.718Z","updated_at":"2024-11-30T22:14:50.388Z","avatar_url":"https://github.com/Codecademy.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"StoryboardXibController\n===\n\n[![Pod Version](http://img.shields.io/cocoapods/v/StoryboardXibController.svg?style=flat)](http://cocoadocs.org/docsets/StoryboardXibController/)\n[![Pod Platform](http://img.shields.io/cocoapods/p/StoryboardXibController.svg?style=flat)](http://cocoadocs.org/docsets/StoryboardXibController/)\n[![Pod License](http://img.shields.io/cocoapods/l/StoryboardXibController.svg?style=flat)](http://cocoadocs.org/docsets/StoryboardXibController/)\n\n**StoryboardXibController** is a utility class made to separate complex view controllers and view data out of your storyboard and into your Xibs, all within Xcode's Interface Builder.\n\nUsing this class you can easily load an Xib from within a storyboard at runtime. Currently this is restricted to Xib files whose **File's Owner** is a `UIViewController` or `UIViewController` subclass.\n\nInstallation\n---\n**StoryboardXibController** is available through **[cocoapods](http://cocoapods.org)**, to install simple add the following line to your `PodFile`:\n\n``` ruby\n  pod \"StoryboardXibController\"\n```\n\nAlternatively you can clone the **[github repo](https://github.com/Codecademy/StoryboardXibController)**.\n\nSetup\n---\nOnce you've installed the class:\n\n* Add a new view controller scene to your storyboard. \n\n* Find the **Custom Class** property within the view controller's **Identity Inspector** tab\n\n* Change the view controller's **Custom Class** from `UIViewController` to `StoryboardXibController`.\n\n![Custom Class](https://github.com/Codecademy/StoryboardXibController/blob/master/README/Class.png?raw=true)\n\n**In Xcode 6:**\n\n* Find the **Screen Controller** property within the view controller's **Attributes Inspector** tab\n\n* Change the view controller's **Screen Controller** to the name of the class of your `Xib`'s **File's Owner**/main view controller.\n\n* Find the **Screen Nib** property immediately below\n\n* Change the view controller's **Screen Nib** property to the name of the `Xib` file you wish to load.\n\n**In Xcode 5 and below:**\n \n* Find the **User Defined Runtime Attributes** within the same **Identity Inspector** tab\n\n* Add an attribute with the **Key Path** `screenControllerClass` of **Type** `String` with the **Value** of the name of the class of your `Xib`'s **File's Owner**/main view controller.\n\n![screenControllerClass](https://github.com/Codecademy/StoryboardXibController/blob/master/README/AttributeScreenControllerClass.png?raw=true)\n\n* Add a second attribute with the **Key Path** `screenNib` of **Type** `String` with the `Value` of the name of the `Xib` file you wish to load.\n\n![screenNib](https://github.com/Codecademy/StoryboardXibController/blob/master/README/AttributeScreenNib.png?raw=true)\n\n* Enjoy!\n\nAdditional Configuration\n---\n* To align the contained view with the Top Layout Guide or Bottom Layout Guide toggle the two view controller properties:\n\t* `Align To Top Layout Guide`\n\t* `Align To Bottom Layout Guide`\n\t\n![screenAlignToLayoutGuide](https://github.com/Codecademy/StoryboardXibController/blob/master/README/AttributesAlignToGuides.png?raw=true)\n\n* Or if you're pre-Xcode6 add attributes of `BOOL` value with the **Key Paths**:\n\t* `alignToTopLayoutGuide`\n\t* `alignToBottomLayoutGuide`\n\nThanks to [@fatuhoku](https://github.com/fatuhoku) for the idea and assistance in developing the feature.\n\n\nContributing\n---\nIf you have any ideas, suggestions or bugs to report please [create an issue](https://github.com/Codecademy/StoryboardXibController/issues/new) labeled *feature* or *bug* (check to see if the issue exists first please!). Or suggest a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Fstoryboardxibcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecademy%2Fstoryboardxibcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Fstoryboardxibcontroller/lists"}