vendredi 23 juin 2017

Apple Watch and iOS targets: Is this a good idea to avoid repetitive code?

I use to have model classes in my apple watch target that is used to store data and modify string data. However, most of the code in the models that I was using could be found in my iPhone app target. So what I did was deleted all the models in my apple watch target and instead using my iPhone models to store and modify string data.

This seems like the correct approach because not only is there less classes, but I only have to make changes once instead of twice if there is any features or changes needed. I'm not use to having more than one target in a project and just want to be on the safe side.

Aucun commentaire:

Enregistrer un commentaire