THE named person service will go ahead despite opponents claiming it has been outlawed the Deputy First Minister has said.

The Supreme Court issued a ruling that the scheme’s aims were legitimate but that that aspects related to information sharing breached human rights legislation.

The Scottish Government said the implementation of the programme will be delayed until the concerns are addressed but that it will be put in place.

The ruling concerned sharing of information about the child and that it breached the right to privacy and a family life.

However it also stated the legislation is "unquestionably legitimate and benign’ and the aims are compliant with EU law.

Mr Swinney said he welcomed the ruling and work would now begin to make the law fully compatible.

He said: “The court’s ruling requires us to provide greater clarity about the basis on which health visitors, teachers and other professionals supporting families will share and receive information in their named person role.

“Ministers remain absolutely committed to the named person policy, developed over several years in consultation with a wide range of individuals and organisations working across Scotland to support children and families.”

Opponents however said the scheme had been ruled “unlawful” and was a victory for parents and children.

Conservative leader, Ruth Davidson, said: "It's a victory for campaigners who have exposed this from the outset as illiberal, invasive and deeply flawed.

"Simply put, the SNP does not know better than parents when it comes to raising their children.

"I hope today's ruling will make the SNP stop and think again.”

Labour said the SNP handling of the issue has been a “shambles” and it needs to be re-examined.

Iain Gray, education spokesman said: "Labour will always support the need to protect vulnerable children and ensure that families get the support they need and deserve.

"In light of this ruling, however, the implementation of this scheme must be paused for as long as it takes to sort it properly."

Others however, backed the government in its determination to ensure it is implemented with the necessary amendments.

The Greens backed the plan and said it should be reviewed after implementation to gauge its effectiveness.

Ross Greer, equalities spokesman, said: “The system has been designed for children who need help and who would otherwise slip through the net. It’s for that reason Greens give it our full support.”

Barnardo’s also backed the scheme and said it was good news it would still go ahead.