swing for

Intermedio alto (B2) informal

To try to punch or hit someone hard, or (old British expression) to be hanged because of something.

"He lost his temper and swung for the referee, which got him immediately sent off."