Swimming has long been a sport defined by legacies, with athletes consistently motivating the next generation of stars.