# Overriding storyboard inside of a framework

**URL:** <https://forums.kodeco.com/t/overriding-storyboard-inside-of-a-framework/57938>\
**Category:** iOS\
**Created:** [December 18, 2018, 2:41pm UTC](https://forums.kodeco.com/t/overriding-storyboard-inside-of-a-framework/57938 "2018-12-18T14:41:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wellbranding](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/wellbranding/32/81494_2.png) [@wellbranding](https://forums.kodeco.com/u/wellbranding)\
**Post date:** [December 18, 2018, 2:41pm UTC](https://forums.kodeco.com/t/overriding-storyboard-inside-of-a-framework/57938/1 "2018-12-18T14:41:17Z")

</div>

Hello I have created a framework and together with framework we add storyboard files. Client has edited storyboards files and he wanted to add custom storyboard inside of his application. He added storyboard in his application with the **same name as mine in the framework**.I have tried many ways of creating VC in order to get the client’s storyboard instead of mine… I finally finished…  
**let vc = UIStoryboard.init(name:“Storyboard”, bundle:Bundle.main).instantiateViewController(withIdentifier: “NewIdentifier”)**

**self**.navigationController?.pushViewController(vc!, animated: **true** )  
However, it still can’t find any outlets from mine framework… **how can I override storyboard from the framework with custom, provided by client?**

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [December 19, 2018, 6:10am UTC](https://forums.kodeco.com/t/overriding-storyboard-inside-of-a-framework/57938/2 "2018-12-19T06:10:03Z")

</div>

Hi @wellbranding,  
When you get a normal instance of a ViewController, that is exactly what it is, a standard UIViewController, not your custom viewController that is derived from this as the base. So you have to cast this as your customViewController when you instantiate and your outlets would all be available - because the standard ViewController does not have your outlets.

cheers,

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [June 3, 2019, 6:41am UTC](https://forums.kodeco.com/t/overriding-storyboard-inside-of-a-framework/57938/3 "2019-06-03T06:41:20Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
