Rotate individual object when swiped

Hi all,

In my game there are multiple objects on the screen, and each of these objects are intractable. At the moment, you tap the object to rotate it 90" dependant on which way the object is facing.
What I want, is functionality to swipe individual objects and then that object rotates. I have looked around on the internet, but not found much. I found code to rotate every object on screen when the screen is swiped, but that is not what I am looking for.

Any advice will be helpful!

Thanks.

Callum

Use a ray cast to work out which object was touched, then apply the swipe to that object.