In my app I need to have a lot of labels with similar properties. Let's say they all have to be green. I don't want to have to say lbl.color = UIColor.greenColor()
every time. How can I make a custom object class/struct allowing me to say something like var myLbl = CustomLbl()
(CustomLbl
being my class).
I'm not sure if this is how you're supposed do it. If not, i have no problem with doing it in some other way.
Also, in my app I would have more properties but i only chose this as an example.
Thanks!