It was a day to savour for Swansea City as they retained the south Wales derby bragging rights with a 2-0 victory over Cardiff City.