+ 1
Xcode
So I’m on Xcode copying code in swift trying to build a tic-tac-toe app. The bug is Value of “Tile” has no member “Naught”. This is Xcode 14.1 , please help !! https://code.sololearn.com/cBF35alIvty3/?ref=app https://code.sololearn.com/cBF35alIvty3/?ref=app
5 Respostas
0
Oh... Maybe so :
struct cell
{
var Tile : Bool
func displayTile() -> String
{
switch(Tile)
{
case false:
return "O"
case true:
return "X"
default:
return ""
}
}
}
if you have a question about the code, ask
0
What does the bug “Cannot find type “blank” in scope“
0
I think I found the answer to your question on the internet: https://developer.apple.com/forums/thread/691672
0
Thats xcode 13
0
I have 14.1