The error says “Cannot use instance member ‘ballArray’ within property initializer; property initializers run before ‘self’ is available”
I tried using a lazy variable, putting an “init()” and many other approaches but the error wouldn’t go away.
New contributor
Utkarsh Joshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1