Module division is generally divided into three modules: business module, general module, basic module
The so-called componentization: affecting the whole body through the architecture
Benefits of componentization:
1. Decoupling between modules
2. Module reuse
3. Improve team development efficiency
4. Unit testing
Lack of componentization
1. It is unnecessary for small projects because the code quantity is too much and cumbersome
2. Modules do not need to be reused, not if they are not referenced externally
On the premise of componentization, the project should be divided into modules
Between modules, the upper layer can only support the lower layer, but the lower layer cannot rely on the upper layer. The common module resources between modules are sunk. Horizontal dependencies are best sunk, continually extracted and stripped down to the bottom. Resolve dependency issues.
Pod Module Creation
Pod lib create ‘module name’….. . . Go back to the main build project pod Install and import the header file to use it