SNP leader John Swinney was the first of 129 MSPs to take the oath in a ceremony at the Scottish Parliament