+ 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

16th Dec 2022, 9:24 PM
Emmanuel Pena
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
17th Dec 2022, 7:41 PM
Артур Хромов
0
What does the bug “Cannot find type “blank” in scope“
17th Dec 2022, 7:46 PM
Emmanuel Pena
0
I think I found the answer to your question on the internet: https://developer.apple.com/forums/thread/691672
17th Dec 2022, 7:53 PM
Артур Хромов
0
Thats xcode 13
17th Dec 2022, 8:18 PM
Emmanuel Pena
0
I have 14.1
17th Dec 2022, 8:18 PM
Emmanuel Pena