A female swimmer wearing a swimming cap does the butterfly stroke .