Complications and widgets: Reloaded

RSS for tag

Discuss the WWDC22 Session Complications and widgets: Reloaded

Posts under wwdc2022-10050 tag

4 Posts
Sort by:
Post not yet marked as solved
0 Replies
76 Views
There is a reference to the official website to create a custom lock screen widget, but the results cannot be searched and displayed. How can it be displayed normally?
Posted
by LD_meta.
Last updated
.
Post not yet marked as solved
0 Replies
103 Views
I'd like an Image subview of a lock screen widget to render as itself, and not with the multiply-like effect it gets today. I've tried .widgetAccentable(true) and .widgetAccentable(false), but none have the appearance I'm looking for. Is there maybe a new modifier that lets me "force" the rendering mode? Hoping there is and it's just not jumping out at me. Thanks for your help.
Posted
by J0hn.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
Good morning, if I understood correctly, Live Activities will come on a later iOS 16 update and are not present on the current iOS 16 beta. I think that might explain the lack of documentation on the subject. What I'd like to understand is what could be the best path to take to make sure we're prepared to build a Lock Screen widget with Live Activities. Is a Home Screen widget a good starting point? Does anyone know? Can an Apple engineer shine some light into the topic? Thank you
Posted Last updated
.
Post not yet marked as solved
0 Replies
133 Views
I'm trying to add a watchOS app and watch widgets to an existing iOS project, similar to what's shown in wwdc2022-10050. The widget works fine when I select the iOS scheme, but when I switch over to the watchOS widget scheme, Xcode fails to generate a preview and gives this error. I'm not sure how to enable support for previews properly. UnsupportedProductTypeError: Previews not supported for WeatherNewWidget Watch Previews can be defined in applications, frameworks, Swift packages, or dynamic libraries productType = com.apple.product-type.extensionkit-extension buildable = WeatherNewWidget Watch.appex
Posted
by Jevon_Mao.
Last updated
.