A female swimmer wearing a swimming cap does the butterfly stroke.
A woman is swimming.
Butterfly stroke is done during swimming Female is a woman
A female doing the butterfly stroke is swimming.
Doing the butterfly stroke implies someone swimming and a woman is a female.