-1

everybody! I've just started learning swift so sorry if the question is dumb. I want to add values to an array "uu" using a loop. However every time it just overwrites "uu".

Pls help, thanks!

My code

1 Answers1

4

That is simple as

uu.append(newNumber)
Chetan Prajapati
  • 2,249
  • 19
  • 24