https://github.com/Sylvia-YiyinShen/objc-dependency-visualizer
A dependency visualisation tool for objective-c/Swift project.
Example:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX-NFqbPL-L1-jM1t5SWRqf3Ys_uMnK1Lg_4hN6OtChClfWNdl0Tr6T2MIApffewh0SKjibZ2WN1-y5bpourBQC200sNhtIae9GctX-ajpyA_xAl63p80KOUgPoaQgEEopa7depDlmGBM/s640/Screen+Shot+2019-07-02+at+1.52.07+pm.png)
The above graph describe a relation between ViewController and MainViewModel: ViewController just holds a reference of MainViewModel.
If we initialise MainViewModel within ViewController as below, check how different the graph would be:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC_3nm4I-EDSjttbQp3Zi4Dyd4j6-1AxXs-PtgztAsFWO32eqQcjzcOMCVlwgJTgqCvM4KaLbnVKMtEX2aLkS4utuHcrb9Ak2Zx4ZthiDrW6hEMLD9dK2bw_QMgYS-YeFBMf8ws8j4Q5Y/s400/Screen+Shot+2019-07-02+at+2.14.24+pm.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaw0Txkc00n3SDpUkX54_HqYa25qvDQfjqW8iYSR102fBvviqUmeY7b5qMwa75FNfFzLttc2_of4cjjOkYmwHEjRqsknrwFqZBNW6vkh95Y7AaEg6kfdmBQ5Jmf3xqazFfonrtAzce8Ak/s400/Screen+Shot+2019-07-02+at+2.14.31+pm.png)
Other visualisation tools:
https://github.com/Sumolari/swift-relationship-graph
No comments:
Post a Comment