Check out example codes for "swift do while". It will help you in understanding the concepts better.
Code Example 1
var x = 0;
while x < 10 {
print "\(x)" //prints x until x < 10 evaluates to false
x = x + 1
}
Learn ReactJs, React Native from akashmittal.com