I have a view and its controller. They do their job and work the way I want. One of the functions is when the user removes the view, adds something to it.
I am adding new features to my application and I can reuse my view and its view controller. BUT, when a user clicks on a view, I donβt want something to be added. What could be a good approach? Do I have to configure my controller depending on who calls it? This means that I need to check throughout my code how my view and view controller is being used (for example: if (isAllowedToAdd) {...})
It seems dirty, and I think I am missing the MVC point. Any suggestions?
source share