Spin switching in a spin-orbit coupled transport in a curved nanowire