John Swinney said the 2011 election, where the SNP won a majority, leading to the 2014 independence referendum, had set a ‘precedent’.