SwiftUI: Using Views in a Modularized Design

ViewConnection

Figure 1 — The HomeViewConnection protocol to obtain external views.
Figure 2 — The HomeView using the connector to obtain external views.
Figure 3 — HomeViewController implementation.

Application

Figure 4 — HomeViewConnector definition accessing diferent modules.

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
onnerb

onnerb

Amo o que a tecnologia e pessoas inspiradas trabalhando juntas conseguem fazer!