Skip to content

adding date complication in photos face #13

@waseemwanologicalsolutions

Description

hi, can anyone post an example how to add 'date' complication in the photos face? i have added like below but when i apply face it gives error "the date app and complication are not available on your Apple watch"

`
let faceItem = Watchface.Face.Complications.Item(app: "com.apple.DateComplicationsHost", extension: "com.apple.DateComplicationsHost", complication_descriptor: Watchface.Face.Complications.Item.ComplicationDescriptor(displayName: nil, supportedFamilies: nil, identifier: nil, kind: "com.apple.CalendarWidget.CalendarDateComplication", containerBundleIdentifier: "com.apple.DateComplicationsHost", extensionBundleIdentifier: "com.apple.DateComplicationsHost.DateComplications", type: 56))

let topComplication = PhotosWatchface.Complication.init(name: "Date", template: .utilitarianSmallFlat(Watchface.Metadata.CLKComplicationTemplateUtilitarianSmallFlat()), faceItem: faceItem)

self.watchface = Watchface.init(photosWatchface: PhotosWatchface(device_size: 2, position: .top, snapshot: jpeg!, no_borders_snapshot: jpeg!, topComplication: topComplication, bottomComplication: nil, resources: .init(images: .photos(.init(imageList: [])), files: [:])))`

Metadata
metadata

Face

face

Screenshot 2023-10-24 at 2 07 56 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions