Archived
Add a corner complication with the appointment's name as the value
Requested shape: the event title as the text, the time small alongside. This inverts how accessoryCorner is built — the curved bezel is where a corner has room for long text and the inner area holds three or four characters — so the title shrinks and truncates. Kept alongside WatchCornerTime, which carries the same information with the roles the other way round, so both can be compared on the face rather than argued about. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
938ca7ca98
commit
2c26be2ab5
@@ -6,6 +6,7 @@ struct CalendarrWatchComplicationBundle: WidgetBundle {
|
||||
var body: some Widget {
|
||||
WatchNextEventWidget()
|
||||
WatchCornerCountdownWidget()
|
||||
WatchCornerTitleWidget()
|
||||
WatchCornerTimeWidget()
|
||||
WatchCountdownWidget()
|
||||
WatchDateWidget()
|
||||
@@ -54,6 +55,21 @@ struct WatchCornerCountdownWidget: Widget {
|
||||
}
|
||||
}
|
||||
|
||||
struct WatchCornerTitleWidget: Widget {
|
||||
let kind = "WatchCornerTitle"
|
||||
|
||||
var body: some WidgetConfiguration {
|
||||
AppIntentConfiguration(kind: kind,
|
||||
intent: WatchCalendarSelectionIntent.self,
|
||||
provider: WatchComplicationProvider()) { entry in
|
||||
CornerTitleComplicationView(entry: entry).complicationChrome(entry.language)
|
||||
}
|
||||
.configurationDisplayName("Terminname (Ecke)")
|
||||
.description("Name des nächsten Termins, Uhrzeit klein am Rand.")
|
||||
.supportedFamilies([.accessoryCorner])
|
||||
}
|
||||
}
|
||||
|
||||
struct WatchCornerTimeWidget: Widget {
|
||||
let kind = "WatchCornerTime"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user