How long after I eat do I need to wait until swimming?
You can swim as soon as you wait 8 hours after eating,  then it won't affect you.
You can swim as soon as you want after eating, it won't affect you.