It does not work as you'd imagine. It doesn't work for anyone - particularly switching from ios to macos as the currently playing device. It works the other way around fine, and even between iOS and iPadOS. But not iOS to macOS. Other headsets that simply support connecting to multiple devices at a time end up providing a better experience since you can switch between devices easier than with Airpods switching. I'm unsure about how the Airpods Max performs but I'm willing to bet it's the same way.