A homochiral 3D framework of mechanically interlocked 1D loops with solvent-dependent spin-state switching behaviors.