[Physics] If uncertainty principle is explained by wave function, then doesn’t wave function collapse when we measure position or momentum

heisenberg-uncertainty-principlemeasurement-problemquantum mechanicswavefunctionwavefunction-collapse

I have been using an app called Quantum on the play store.
It says that the uncertainty principle can be explained by wave function, that is when we try to determine position , the wave function should be localised which means momentum is uncertain and vice versa.

My question is that if we measure anything of the particle, the wave function should collapse and any uncertainty should vanish.

Sorry if the question is dumb.

EDIT: My textbook (published by the GOVERNMENT) explains it like:
When we measure the position of a particle, a photon hits it and changes its momentum. This has been refuted by the app & wikipedia (looking at your answers, even you guys) as a confusion between uncertainty principle and observer effect. Can you refer a good reputed book for me to complain?

Best Answer

My question is that if we measure anything of the particle, the wave function should collapse and any uncertainty should vanish.

If an ideal position measurement is made and the particle if found to be at $\mathbf{x}$, and then another ideal position measurement is made immediately after the first, the result of the second measurement is certain to be $\mathbf{x}$. So uncertainty in the result of this second position measurement does indeed vanish.

However, if the second measurement is instead an ideal momentum measurement, any result is equally probable, i.e., there is 'infinite' uncertainty in momentum.

So it isn't true that any uncertainty should vanish.