inout variables swift – how it works ?
inout variables swift – how it works ? Swift function parameters are by default constant type. That means you can not change parameter value inside the function body. In such case, if you need to change values then use inout keyword before the parameters. To understand this, let’s see below example of swapping to values… Read More »