Swift 3.0......
func labelConv() -> String {
var thisLabel = String()
if (movedPiece == "A1") { thisLabel = A1Label.text! }
print (thisLabel)
return thisLabel
}
print (labelConv())
A1Label.text = labelConv()
thisLabel is BLANK WHY? It is a chess emojii I am passing... but I do not think that will make a difference.
And the print of the function is BLANK
And A1Label.text is obviously BLANK as well.....
Why cant I get a value in thisLabel?
Now I dont know if it is a stupid error on my part or Something with Swift 3.0
Thanks for any help. This is frankly a little embarassing, but I cant seem to figure it out.