0
Good night.
I have two classes and created an instance referencing the parent class calling its method and the same does not run and shows the following sentence:
"Swift Expressions are not allowed at the top level"
PS: I’ve tried everything, created, recreated... they’re all in the same group in Xcode
What can it be?
Follows print
Voce has to place its code inside a function/method or inside viewDidLoad or viewDidAppear
– Leo Dabus