Code Help: Obj 1 to rotate around Obj 2

Hello I am trying to create a game and am needing help with a code that will allow me to have one SKSprite Node rotate around another one. Then whenever the screen is tapped those objects reverse roles.

Thats seems really tricky to do… maybe look around some github projects that have to do with spritekit