Search code examples
swiftcolorswatchkitapple-watch

Change colour of label in code - watchKit


How can I change the colour of a label in watchKit using code? There are articles about doing it on iOS but this works differently in watchKit. I would like to do it in Swift.


Solution

  • You want to use this Dylan Murphy:

    label.setTextColor(UIColor.red)
    

    You can change red to any default colour.