Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding date complication in photos face #13

Open
waseemwanologicalsolutions opened this issue Oct 23, 2023 · 0 comments
Open

adding date complication in photos face #13

waseemwanologicalsolutions opened this issue Oct 23, 2023 · 0 comments

Comments

@waseemwanologicalsolutions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant