swift increase variable by one code example Example: swift increase int value var num = 0 num = num + 1 num += 1 //can use any math operation