Utilities for viewing swap usage and for managing the swap space are generally OS-specific.
One way to get the swap usage on macOS is through sysctl,
This question/answer at the Ask Different site talks about moving the swap file to another disk, but the question is over eight years old, so it may be out of date.
This question on the same site is about disabling swap on macOS, but as one of the answers says:
That said, this is definitely a case of premature optimization. It is almost always a HORRIBLE, HORRIBLE idea to disable your swap file. The swap file is there for when your running programs consume more memory than you have physically installed. If you disable it, you may not be able to run as many programs at the same time (and the limit is far lower than you'd expect) or you may have issues (like freezing and having to hard-reboot the machine) when you run out of memory.
The question states that one may disable swap and delete the swap file using
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sudo rm /private/var/vm/swapfile*
which I haven't really dared testing.