Skip to content

BradPatras/ios-modules-test

Repository files navigation

iOS Modules Test

Testing out modules in an iOS app.

The basic idea is to split out bits of standalone functionality into seperate projects in the workspace, then include them in the main app as frameworks.

The benefit is that when you build the app, the swift files of the frameworks will not have to be compiled unless they are changed.

Modules

CoreRepository

Contains class for fetching data that the app uses. In this app the data is just stored as json files in the app bundle.


CoreView

View framework for the screens in the app. Currently the only view besides the main screen is the detail page so the fact that it gets its own module seems kinda redundant but it's just for the sake of learning.


ImageLoader

Provides UIImageView extensions for asynchronously loading images. Currently just wrapping Kingfisher apis but if I wanted to swap out Kingfisher for something else in the future it would be really simple and require no changes to the main app.

 

Here's what it looks like in Xcode

project

About

Testing out modules via frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published