The Swiss authorities online
Are you a foreign national and have been granted a residence permit under the family reunification programme? In certain circumstances, divorced or widowed spouses and their children can stay in Switzerland following a divorce or the death of one of the parents.
If you are from an EU/EFTA state you can apply for your own residence permit if your marriage ends (either through divorce, death or annulment) provided:
A divorced spouse’s or child’s existing residence permit may be extended provided:
Spouses and children over 12 years old who have come to Switzerland under the family reunification scheme obtain a settlement permit after five years of continuous residence in this country. They also have the right to settle in Switzerland following a divorce or after the spouse’s death.