https://github.com/patoroco/loctite
Connect different storyboards without write code, all from Interface Builder
https://github.com/patoroco/loctite
Last synced: 9 months ago
JSON representation
Connect different storyboards without write code, all from Interface Builder
- Host: GitHub
- URL: https://github.com/patoroco/loctite
- Owner: patoroco
- License: mit
- Created: 2014-07-05T17:25:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T11:00:21.000Z (almost 9 years ago)
- Last Synced: 2025-10-23T09:59:18.598Z (9 months ago)
- Language: Objective-C
- Size: 88.9 KB
- Stars: 18
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Loctite
How many times did you hear about the pain it is to work with `storyboards` in a team because it kills your SCM?
How much time did you spend loading big storyboard files in your slow machine?

`Loctite` arrives to help you 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 writing any line of code!!!
## Install
`Loctite` is available via CocoaPods, so you only need to include this line in your Podfile
```
pod 'Loctite'
```
## Use
After installing 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 on 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 separator different from '.', 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 to be `[storyboard_file]_[viewcontroller_identifier]`.
Anyway, my recomendation is to inspect __Demo project__ to see examples.
## Author
- Jorge Maroto ([@patoroco](http://twitter.com/patoroco)).
## License
`Loctite` is available under the MIT license. See the [LICENSE file](LICENSE.md) for more info.