Goals from Dejan Kulusevski and Marcus Danielsson snapped Sweden's four-game losing streak in the Nations League as they beat Croatia 2-1 in Stockholm on Saturday.