# Callback from an embedded framework storyboard having multiple view controllers

**URL:** <https://forums.kodeco.com/t/callback-from-an-embedded-framework-storyboard-having-multiple-view-controllers/18842>\
**Category:** Swift\
**Created:** [August 24, 2016, 3:25am UTC](https://forums.kodeco.com/t/callback-from-an-embedded-framework-storyboard-having-multiple-view-controllers/18842 "2016-08-24T03:25:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dileep55](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dileep55/32/39557_2.png) [@dileep55](https://forums.kodeco.com/u/dileep55)\
**Post date:** [August 24, 2016, 3:25am UTC](https://forums.kodeco.com/t/callback-from-an-embedded-framework-storyboard-having-multiple-view-controllers/18842/1 "2016-08-24T03:25:31Z")

</div>

I am creating a swift framework which has multiple view controllers connected via segues. I want to publish this framework out where the projects using this will invoke the embedded storyboard to perform a set of actions.

Once done I want to return the control back to the viewcontroller which invoked the storyboard. dismissViewController would only take me back to the mmediate view controller and since I have multiple view controllers this would not work. I thought of unwind segue but it will only take me back to the initial view controller within the embedded framework.

Any ideas on how to approach this?
