He was sentenced to 10 weeks jail, suspended for 12 months with up to 35 days rehabilitation to be supervised by the probation service, ordered to pay £100 compensation to the police officer and £60 compensation for the damage, with £85 costs plus £115 victim’s surcharge.

Prosecutor, Jim Mowbray, said police were called to Swift’s partner’s home in Walmsley Street, Fleetwood, on January 18, where the defendant had smashed items in the kitchen.

As a police officer spoke to Swift’s partner the defendant ran up asking what the officer was doing talking to her and threatening to hit him in the head.

He swung a punch at the officer who had to use his pepper spray.

Swift continued to make threats and kicked out at the PC who drew his stun gun and threatened to use it.

Colleagues helped restrain Swift but he kicked the officer on the knee.

Swift, who had a previous conviction for assaulting a partner, was found with a small amount of cannabis when he was searched.