Check out example codes for "swift increase int value". It will help you in understanding the concepts better.

Code Example 1

var num = 0
num = num + 1
num += 1
//can use any math operation

Learn ReactJs, React Native from akashmittal.com