MacroSwarm: A Field-based Compositional Framework for Swarm Programming (Logical Methods in Computer Science, 2025)