Upvote:1
If you got a visa from the Swiss embassy, then Switzerland must be your main destination. As long as it's still true, it is OK if your port of entry or exit, or both, are not in Switzerland.
You say that you'll spend most days in Switzerland, so it qualifies as your main destination. Just make sure you have evidence supporting this, as you may be asked to show them when entering the Schengen area. In your case, I believe the best evidence would be hotel reservations in Switzerland. Train tickets can be good too.