Dears,
It's my first project using Swift, and I'm completely lost...
I have a list of itens to be shown in 10 UILabels... each of these itens will have a differente color, depending on the user's progress.
So, I've created an Array of strings to populate all of this UILabels with a simple For loop...
Now, my question is:
Once I've three different type of "PROGRESS", is it possible to create a function to define the text colors in my array?
It would be something like:
Let funcText: [String] = [
("Text1", progressLoadingColor),
("Text1", progressCompletedColor),
("Text1", progressDelayedColor),
]
Is it possible to be done?
Should I use NSAttributedString?