GUI tool that I used on Ubuntu: gparted
But that doesn’t work if your swap is a file instead of a partition.