Coleraine moved up to fifth place in the Premiership table by edging out Dungannon at Ballycastle Road.
Ciaran Clarke met Johnny Black's left-wing cross to score at the back post after just 29 seconds.
Curtis Allen shot in off the crossbar on 11 minutes but Joe McCreadie poked the ball home after Michael Doherty dropped the ball in the 38th minute.
Black scored a penalty at the end of the first half and Terry Fitzpatrick fired in for Swifts on 68 minutes.
Clarke was on hand to open the scoring after Allen had been unable to connect with Black's cross.
Allen made no mistake to score the Bannsiders' second, but McCreadie's strike gave Dungannon hope.
Black restored his side's two-goal lead after Howard Beverland was fouled in the penalty area by Ryan Mullan.
Leon Knight fired wide and Fitzpatrick met a Shea McGerrigan free-kick.