Green’s Dictionary of Slang

swing, the n.

[swing v. (1)]

the gallows.

[UK]‘Newgate Melody’ in Morn. Post 17 Apr. 3/4: If the hand of a friend the cord bring, / There will be little pain in the swing.
[Ire]‘A Real Paddy’ Real Life in Ireland 114: In a few minutes I will get the swing.
[Aus]Bulletin (Sydney) 22 Aug. 6/4: Tom stood it very well for a time, but at last, losing all patience, he poked his head into the cell door and shouted out, ‘Musha, long loife t’ ye, Misthur O’Brien, but wud ye plaze to hurry along wid yer prayers? The jintilmin are getting’ tired waitin’ undernaith yer purty little shwing beyant there.’.