Guest-tuned spin crossover in flexible supramolecular assemblies templated by a halide (Cl-, Br- or I-).