Swords makes a great base to explore Dublin from. It's worth visiting Swords to see the castle, but I wouldn't go out of my way to visit if I wasn't staying here.