krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Refactoring with Natalie in a project. #110

Open alexpchin opened 6 years ago

alexpchin commented 6 years ago

We have a project that came with Natalie installed and contains a very large storyboard. Our next step is that we want to refactor this main storyboard into a number of smaller storyboards. Do you have any suggestions of how to do this with Natalie installed? At the moment, as I understand it, there are a few issues being caused?

I can't really find any documentation on this and the team members (@gslondon) haven't really used Natalie before? If you could give some suggestions, documentations or blog posts about this that would be really helpful!

gslondon commented 6 years ago

It would be good to know how to configure Natalie to work with Storyboard References in particular. As it stand now, the project's Storyboards.swift is blank after Natalie executes.

krzyzanowskim commented 6 years ago

Natalie doesn't look into the references so far so there is not much to setup. It can parse each storybard independently but the inter-connections are not followed.

alexpchin commented 6 years ago

Hello @krzyzanowskim. I've added a video here of the issue we're facing? https://we.tl/kjnbO6gloN

screen shot 2017-11-17 at 17 14 16

Any pointers to solve this quickly for refactoring a large storyboard as our alternative is to remove Natalie from the project?

phimage commented 6 years ago

on macOS I have a storyboard reference and no problem (with the last version) I did not use the refactoring

Maybe rename Storyboard ID to the storyboard name, not the controller one

Maybe If you can give a reduced storyboards with same issue I can execute natalie in debug mode and see what append