First Minister John Swinney and members of the Ukrainian community were mong those at the Edinburgh Castle event.