Use
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
test.append(number)
}
1
solved Create the tail of the Snake in a Snake Game – swift [duplicate]
Use
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
test.append(number)
}
1
solved Create the tail of the Snake in a Snake Game – swift [duplicate]