I made some complications for the Apple Watch. I uses Intents for this complications.
This code is used to add the complications:
func provideVehicleItemOptionsCollection(for intent: ConfigurationIntent, with completion: @escaping (INObjectCollection<VehicleItem>?, Error?) -> Void) {
let vehicleStatusList = VehicleStatus.loadVehicleStatusList()
var list: [VehicleItem] = []
for item in vehicleStatusList {
list.append(VehicleItem(identifier: item.id, display: item.name ?? "No Name"))
}
let collection = INObjectCollection(items: list)
completion(collection, nil)
}
But with this all complications show the same name. On the Apple Watch they show an icon in addition to this name, but also with is sometimes not working.
How can I change the Title of the complications?