Hello friends,
I’m back again…
I am still struggling on this temperature conversion app. I think it has definitely got to the point at which I am over complicating things. But I am not sure if that is the right way to go.
The bright side is that I have learnt how to get the array to display correctly in the Segmented Control portion of the UI. So they now default on the second [$1] item in the array. It took me a while to realise that my state private var was assigned to a String data type rather than a number, which meant there was an empty value in an incompatible datatype. Ahhhh I do love how Swift can make you feel ridiculous over the simplest of mistakes.
Here is some of the code I have been working on.
One thing I have definitely found is the front — end UI programming is ridiculously easy and intuitive. You can easily spin up a workable user prototype within a couple of hours. But the most challenging part of building this app “by myself” (I put this in quotation marks because I am referring to a lot of the code I used in the Tip Calculator project), is discovering the backend logic. Yes, I say discovering because the logic that makes the functionality work is very much like walking through a Jungle. At one point, you may think you’re on the right path, but suddenly you take one wrong turn and you end up in the wilderness, with Red X’s everywhere and the compiler errors start stacking on top on one another, and your stuck in the wilderness with not XCode autocorrect or Canvas to let you see what you’re doing. But that is all part of the fun, trying to see where you went wrong and find a workaround to get back on track.
I am still working on this project, I hope to get the conversion aspect working by the end of this week. If I can get the back-end logic to print out some coherent logic, I will consider that an absolute win it has taken me about 3/4 days to get to this point. The UI is done, now I just have to get it to work.
Check back for more updates.
Thanks for taking the time to read this, I really appreciate it.
:)