Green’s Dictionary of Slang

swing, the n.

[swing v. (1)]

[late 18C–mid-19C] the gallows.