Sorry, I can not find the exact source. The Eidgenossen (`comrades in oath') fought against the old German Empire. Schwyz was the name of one Kanton, but soon used by outsiders to describe the whole confedereation. The Eidgenossen did not like this at first, but eventually accepted the name defiantly. However their state's official name - even today - is confoederatio helvetica. (This is in neo-Latin mostly not to give official preference to one of the countries languages over another.)
Perhaps not nearly as bad as `nigger', but `swiss' was not meant as a compliment at first either.
Perhaps not nearly as bad as `nigger', but `swiss' was not meant as a compliment at first either.