Dear fellow coders,
first and foremost, I'm an utter newbie to coding (in general), so this question might seem silly to some of you.
I've managed to create a watch face, which I'm pretty happy with, but the code looks messy and I've been trying to optimize it as much as I can.
so instead of hard-coding each text I want to show on a watch face, I've created a function to format the data for me, looks like this.
initially, :locX and :locY were typed in by me as parameters, but I wanted to create a for loop that would pick up the coordinates for the drawable - I've created and array coords, shown below.
the function works fine with x, y parameters and declaring them with :locX=>x and :locY=y, so my guess is I just don't know how to form a proper array reference inside the function.
any help much appreciated
cheers community.garmin.com/.../1335447.png community.garmin.com/.../1335448.png