The phrase ‘took a swing' is used to describe when a person tires to hit something or someone.
Example in use: "Jenifer lost it, she took a swing at Iris, but Iris bobbed out of the way just in time."
There's a similar phrase with a different meaning: Take a swing = take a chance.