I would like to quickly swap two views from one side to the other and wonder if there is a hotkey for this functionality?
There is a very easy way to do this. In the assistant editor, there is a bar at the top that shows the path of the file in the editor. Drag that file's icon into the same bar in the main editor.
Boom! swapped.
Keep in mind, that you need to be set up this way to pull this off:
Here are the keyboard shortcuts to do the swap:
ctrl + command + up
or
ctrl + command + down