Focus mode is a very powerful new iOS 15 feature with a good level of fine tuning for specific situations. Focus mode was previously called DND in other iOS versions.
In this example the Focus mode is set for the duration of an event in your calendar.
This iOS shortcut will set the Focus mode and ask if you also want an alarm at the end of the specified duration.
I use this shortcut im situations where I do not want any notifications such as meetings or during time that I am cooking at home.
It’s useful to avoid creating distractions while performing a task.
Keep coding!