That's the same drawing turned upside down.View attachment 258490
Is this better?
You want the sum of the river velocity and the swimmer velocity to give a result that points directly across the river. Can you draw a right triangle to show that?
The flow velocity and the desired velocity are at right angles. If those are two of the sides of the triangle, it will indeed be a right triangle.