Swimming in salt water would give you some nutrient absorption (mainly minerals) but none to affect the macro's.
I can't see that the ocassional swim doing you any harm while fasting.
I'm off the coast and swim in fresh water while fasting.
When there's a drought I dry fast. (No towell required.)