It is generally recommended to wait at least 2 hours after practicing yoga before swimming. This allows your body enough time to cool down and your heart rate to return to normal. Additionally, practicing yoga increases flexibility and can lead to muscle fatigue, so it is important to rest and recover before engaging in any strenuous physical activity like swimming.