Generally speaking I think most artists recommend at LEAST a month before swimming or sun exposure, maybe it's a little shorter with just the linework. I would talk to your artist about the swimming and potential repercussions, but personally I would err on the side of caution and not do it. Touch ups are always an option but if you go against recommended aftercare you may really piss off the artist, and that's never a good thing.