I want to type an if statement in the InterfaceController which basically goes like-
if label.text == "Hello" {
//execute some code
}
But the WKInterfaceLabel
just seems to have the setText()
property. So how can I access the WKInterfaceLabel
's text property? Thanks in advance!
Short answer: You can't.
Longer answer, store the string in a separate variable and use that for the
if
statements.