RNExternStoryboard 2.0

RNExternStoryboard 2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2015

Maintained by Rafael Nobre.



 
Depends on:
ObjcAssociatedObjectHelpers~> 1.2.0
JRSwizzle~> 1.0
 

  • By
  • Rafael Nobre

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)