When I am coding my app the first line of my code say that there is an error due to "expressions are not allowed at the top level" can somebody please help me.
Probably you are calling a func outside of a class, like:
print("Hello")
class ViewController: UIViewController {
// …
The call to print must be inside a func :
func printHello() {
print("Hello")
}