Clean way to link view controllers with segues between multiple storyboards
Branch: master
Clone or download
Pull request Compare This branch is 29 commits ahead of vokilam:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Library
Sample
.gitignore
LICENSE
README.md
RNExternStoryboard.podspec

README.md

RNExternStoryboard

RNExternStoryboard is a clean way to link view controllers with segues between multiple storyboards.

Split your View Controller logic into multiple reusable Storyboards, seguing between them effortlessly with no additional code and no subclassing!

This page includes the Library files necessary for integration in your app, and a demo app that demonstrates how to link view controllers with segues between multiple storyboards.

Based on work by Paul Malikov.

Inspired by RBStoryboardLink.

Installation

The recommended install method is via CocoaPods - its easy!

pod 'RNExternStoryboard'

Otherwise you can clone the repository and manually copy the Library folder and the following dependencies into your project:

Usage

After you break your storyboards into modules, link between them by either:

  • Creating a UINavigationController in the source storyboard and setting the User defined runtime attributes "storyboardName":"YourStoryboardName" and optionally a "sceneIdentifier":"YourSpecificVCIdentifier" to automatically load its Root View Controller from another Storyboard.
  • Using a extern push or extern modal segue to a blank view controller which declares the above runtime attributes, to transition to a View Controller in another Storyboard.

See the demo app for more information, its a seamless, no-drawbacks solution that makes your storyboards lighter, more reusable and team-friendly (avoid merge conflicts with modular storyboards that can be owned/maintained by single/few developers)