I want to show a watchOS control that has a Text as its Label. I tried achieving this with this code (the provider and action are just placeholders):
StaticControlConfiguration(kind: "codecontrol", provider: PinProvider()) { pin in
ControlWidgetButton("Current PIN", action: StartTimerIntent()) { bool in
Text("1234")
}
}
The desired behaviour is like the battery percent indication in the control center (left image). Instead it shows up like this (right image).
desired behaviour Current behaviour
Is there any way to achieve this or is that another private API that Apple uses?
lang-swift