-1

I'm considering a way to make an easy extensible iOS app. Let me explain, a client want's an app which is easy extensible with modules, so we can make separate modules and add them as wished to a base app. It have to be a possibility to make de modules in a new Xcode Project (it may be that inheritance of an interface is necessary). So in the end, de modules have to be added tot the Xcode Project of the base app and the new added module (UIView) is automatically added to the tab bar menu (or any other menu structure).

I'm not asking for code snippets but just your opinion of how to solve this problem or what the best way is to do it.

KNV
  • 631
  • 4
  • 19
  • https://www.raywenderlich.com/65964/create-a-framework-for-ios – Dare Jun 27 '16 at 15:55
  • I have an open source modularization framework in iOS named TinyPart, may can help you learn something about modularization in iOS. https://github.com/RyanLeeLY/TinyPart – yao li Apr 14 '18 at 08:46
  • Thanks @yaoli I will check your repository! – KNV Apr 16 '18 at 08:14

1 Answers1

1

It sounds like you need to develop a framework. Find the pieces of the app that you want to be shared among other apps. Make that into its own, standalone entity. On my projects, I have similar apps with different UI's. So the core of how data is retrieved and manipulated is all the same code. What differs is the UI.

That's the approach I would take.

Lucas
  • 66
  • 4
  • Thanks for your answer. I'm looking now for how to use frameworks in Xcode, it seems to be an easy thing. But because of I have different views as modules how can I link an .xib file with the code behind it to a framework? In other words my modules (frameworks) have to be views. – KNV Jun 28 '16 at 11:38