How get wkinterfacelabel text?

1k views Asked by At

watchkit WKİnterfaceLabel not supported.

@IBOutlet weak var wklabel: WKInterfaceLabel!   
var text = wklabel.text //error
println(text)
1

There are 1 answers

0
Steve Wilford On

You can't retrieve the current text from a WKInterfaceLabel as the class only provides methods for setting text and colour. You would have to store the text in your own string property before setting it on the label.