Swap the numbers program in a swift basic programs

Swap the numbers program in swift programming language. This program interchange the values in swift programming language. To interchange the values in swift we have used the = method to change the values are initially allocated in the swapping the number program in swift

var a = 0

var b = 1

(a, b) = (b, a)

print(a, b)
Output:

1 0