Giter Club home page Giter Club logo

ios-mvp-clean-architecture's People

Contributors

acidcromaticle avatar anasalhasani avatar catalinprata avatar cosminstirbu avatar moelnaggar14 avatar msavisko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-mvp-clean-architecture's Issues

architecture problem

if there is a btn on cell. when i press the btn, how to deal with it ,if use this architecture. i am confuse about it.

Where would you define `TaskManager` protocol and its implementation?

Thank you for this awesome example project!
I'm interested how would you name and where would you put a protocol and its implementation that can queue and manage multiple tasks with final completion callback, pausing, retrying and etc. Some kind of abstraction for NSOperation or GCD.
Does that counts as iOS specific framework? Or is it Application Logic UseCase? Or maybe Application Logic Gateway?

Configurator in ViewController

Why does the configurator have to be part of the ViewController? I see no reason for it. The call to configure which wires up the presenter into the ViewController could also be done directly on creation of the Configurator.

One additional problem because of that - all instance variables hold by the Configurator are kept alive during the whole lifetime of the ViewController. But they are anyway passed during the configure() call to the right places. So they are kept twice.

But maybe there is something I am not aware of.

Thanks.

unowned references

One suggestion for further improvement:

The weak view reference in the router can be changed to unowned.
As well as the weak view reference in the presenter.

Because the ViewController is that object which keeps the whole "module" alive both router and presenter depend on the ViewController to exist. As soon as the ViewController is deallocated both the router and presenter will be deallocated as a reaction to it. So it can never happen that the view reference turns into nil.

This saves one from all the guard statements with strange or non-existent error handling.
Also the optional calls like view?. can be removed and the code keeps concise and clear.

I have some questions

image
here only one type of cells in tableview,how can i set up some differert cells according to datas where from network,becasure this controller don't owner the datas

Api call for multiple use cases

I have a viewcontroller that has multiple usecases, both of which make calls to an Api and does so on viewcontroller load. Currently, a operationqueue calls the usecases 1 at a time. How would I approach making these calls concurrent? I want both usecases to have their own thread to make their call on load.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.