swift 5 func to increase number every time call code example Example: swift 5 func to increase number every time call var n = 0 func increment(){ n++ return n }