#Loctite
How many times did you ear about what pain is work with storyboards
in team because it kill your SCM?
How much time did you spend loading big storyboard files in your slow machine?
Loctite
arrives to help you to split your Main.storyboard
unique file in several sub-storyboards, and acts as glue (Loctite's name comes from here ;)) to connect them.
And all of that without write any line of code!!!
Loctite
is available via Cocoa Pods, so you only need to include this line in your Podfile
pod 'Loctite'
After install pod in your project, you only need to generate a dummy view controller on your storyboard, and connect it with a segue (rigth button and drag over it). A dialog as follows will appear, and you can choose between loctite push
or loctite modal
depending which transition you like.
After that, you only need to set segue identifier to [storyboard_file].[viewcontroller_identifier]
, for example, if you have another storyboard named Second.storyboard
, you should set segue identifier to Second.recursiveVC
, and it'll fire recursiveVC
view controller from this separated file. Easy, isn't it?
If you need a different separator rather than '.', you can specify it on your project's info.plist, using the key 'Loctite Separator'. This key will override the default one.
Example: using "Loctite Separator : _" in your info.plist, Loctite would expect your segue identifiers as [storyboard_file]_[viewcontroller_identifier]
.
Anyway, my recomendation is to inspect Demo project to see examples.
- Jorge Maroto (@patoroco).
Loctite
is available under the MIT license. See the LICENSE file for more info.