A swimmer, who was treading water off the coast of Beverly for more than an hour, was rescued Sunday morning.