RIBsTreeMaker icon indicating copy to clipboard operation
RIBsTreeMaker copied to clipboard

Visualize RIBs business logic

RIBsTreeMaker

RIBsTreeMaker visualize RIBs business logic tree. The output style is org-mode mindmap.

Usage

swift run RIBsTreeMaker [path/to/iOSproject] --under [RIB name]

Use under option, the tree will be displayed only under the RIB.

Visualize for mindmap

The output style is org-mode mindmap.

@startmindmap
* Root
** LoggedOut<<noView>>
*** TermsOfUse
**** FailedLoading
*** Welcome
**** SignInFailedDialog
**** ForgotPassword
***** SMSAuthentication
****** ResetPassword
** LoggedIn<<noView>>
@endmindmap

Additionally, the mindmap style is set to detect easily the RIB has own view or not.

<style>
mindmapDiagram {
  . * {
    BackGroundColor #FFF
    LineColor #192f60
    Shadowing 0.0
    RoundCorner 20
    LineThickness 2.0
  }
  .noView * {
    BackGroundColor #FFF
    LineColor #d20b52
  }
}
</style>

For example, if use PlantUML the RIBs tree is visualized like the below.

Credits

RIBsTreeMaker is inspired by flock. Modified and adapted to RIBs architecture.