Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modular iOS: My experience

Modular iOS: My experience

Talk by Anton Ogarkov

Антон расскажет нам о модульности в iOS проектах, своем опыте и очевидных (и не очень) преимуществах.
От автора:
Сейчас назревает здоровый тренд на модульность в мобильных приложениях. Хоть он и не такой хайповый, как Coordinator или паттерны для разделения логики и представления, но он очень помогает программистам разделять области ответственности и держать сложность кода под контролем. Я расскажу про свой опыт на одном интересном проекте и как модульность нам много где помогла.

This talk was made for CocoaFriday #4 ( https://cocoaheads.org.ua/cocoafriday/4) which took place June 14, 2019

Video: https://youtu.be/1OqLeAQ_JAM

CocoaHeads Ukraine

June 14, 2019
Tweet

More Decks by CocoaHeads Ukraine

Other Decks in Programming

Transcript

  1. Where is it most suitable? Good for large projects with

    a lot of abstract layers (horizontal separation) Good for middle-sized projects where you can separate features into different modules (vertical separation) Bad for small projects - will just make things too complicated
  2. Pros Code separation and namespaces Due to that you design

    is better XCode will compile only what has changed You can go open source with your solution!
  3. Cons Structure may become too complex for some apps CI

    gets harder (only if you have code in different repos) "Image not found” error. You have to master libraries Resources may end up not in main bundle Conflicts in *.pbxproj file. But you can use separate projects