I'm trying to build a WatchOS 9 corner complication with WidgetKit (using Xcode 14 beta 3).
I'd like my complication to look like the battery one in the bottom right corner. Here's my view:
struct HydrationProgressCorner: View {
var entry: Provider.Entry
var body: some View {
Text("\((100 * entry.progress / entry.target).rounded(.towardZero).formatted())%")
.widgetLabel {
ProgressView(value: entry.progress, total: entry.target)
.tint(.blue)
.widgetAccentable()
}
}
}
How can I get my text to follow the curvature of the watch face?