'WatchOS set title action

When only a single interface is shown, is it possible to set an action when the top title is tapped? image



Solution 1:[1]

You did tried to add a simple action to your button, like this?

    Button(action: {
            //add your action
        }, label: {
            Text("End")
                ...
        })

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Iskandir