Does Docker Swarm support shared memory?

I am trying to understand if Docker Swarm support shared memory between containers.
If so, how to set it up?

Great question! I worked several years with Swarm, and never asked myself if it does.

I would suggest asking in the Moby Github project, as it is more likely a question the develops will be able to answer:
https://github.com/moby/moby/discussions