Provided both flights are on the same ticket, the airline thinks you can do it. If you don’t, they may be liable for compensation (a pretty large amount compared to the likely cost of the ticket), so they have a strong incentive to make sure you do.
Airports and airlines define a “minimum connection time” (MCT) for various types of connections (e.g. domestic-to-domestic, international-to-domestic, etc.), and airlines won’t sell a connection below that MCT.
While tight, the connection is quite doable. If Swiss think it may become difficult, they will probably send someone to your gate to escort you to your flight and possibly jump a few queues.
They are also likely to hold the onward flight for a short while if needed. Traditional carriers like Swiss make a lot of their business on connecting flights like this one, it should be a pretty well oiled machine.
The two most time-consuming parts of the connection should be going through passport control and through security (in both cases dedicated to transfer passengers). The rest is just moving around, either short distances, or using the automated people mover. You won’t need to retrieve your bags or check them back in.
If you end up missing your connecting flight, Swiss have to rebook you on the next available flight, which will be later the same day.
Also remember that depending on the reason for the delay (and the actual delay), you may be owed compensation.
Of course if you did not book the itinerary as a single ticket but as two independent flights, then the situation is completely different and the connection is just impossible.