Swan restricts Sri Lanka to 275 runs