Xaver Schwegler was a Swiss painter and lithographer.
Xaver Schwegler, son of the painter Jakob Schwegler (1793–1866), had his first painting lessons in his father's studio who was a professor at the canton drawing school. He studied at the Royal Academy of Arts in Munich from December 1, 1851, and dropped out after eight months. He returned to Lucerne and worked as a genre and landscape painter.
From 1858 Schwegler studied nude painting in Paris for nine months in Charles Gleyre's studio and attended the École des Beaux-Arts. In 1860 he founded the "Lithographische Anstalt Schwegler & Söhne" together with his father and brother Josef. After his father's death in 1866, he replaced him as a teacher in the Lucerne drawing school until 1869. He was a member of the Lucerne Art Society.
In addition to the large-format pictures, he painted miniatures on ivory and also created lithographs.