ARView error question

Hi everyone,

I'm new to coding so this might be a really dumb question but I keep getting the following error "expressions are not allow at the top level". I think all the other errors are a flowing of this error, but again; I'm just getting into coding. Can anyone help? For explanation, I'm trying to make an AR app.
  • B

https://share.icloud.com/photos/06GfUQktOH8-tZvvNNHYJm7Iw
Answered by DTS Engineer in 664520022
Hello,

You have a brace level mismatch here, so the Swift compiler is producing an error indicating that the expression 'setupARViews()' is not allowed at the top level. You should reexamine your opening and closing braces to ensure all of your code is in the proper scope.
Accepted Answer
Hello,

You have a brace level mismatch here, so the Swift compiler is producing an error indicating that the expression 'setupARViews()' is not allowed at the top level. You should reexamine your opening and closing braces to ensure all of your code is in the proper scope.
ARView error question
 
 
Q