Swap file for what? I put my Adobe swap on any drive, as long as it's not on the same drive as the software using it. For OS? Put it on a different drive other than the software home drive.
A separate partition isn't necessary, but I do it purely for organization.