Post

Replies

Boosts

Views

Activity

Reply to WidgetKit with Intent on iOS 17
Update: I worked it out, I needed to add my intent to 'Supported Intents' in my app target config. I am now facing the following problem: The widget is showing placeholder coloured boxes when placed on the home screen. It shows fine in the preview before adding to Home Screen. I think this is because the AppIntentTimelineProvider is looking for timeline(), whereas a static widget (TimelineProvider) and iOS are looking for getTimeline(). If I change timeline() to getTimeline(), it says it doesn’t conform. placeholder() is the same in both providers, which is why it shows fine before adding to home screen I can provide screenshots, but it doesn't let me upload them
Topic: App & System Services SubTopic: General Tags:
Nov ’23
Reply to WidgetKit with Intent on iOS 17
Update: I worked it out, I needed to add my intent to 'Supported Intents' in my app target config. I am now facing the following problem: The widget is showing placeholder coloured boxes when placed on the home screen. It shows fine in the preview before adding to Home Screen. I think this is because the AppIntentTimelineProvider is looking for timeline(), whereas a static widget (TimelineProvider) and iOS are looking for getTimeline(). If I change timeline() to getTimeline(), it says it doesn’t conform. placeholder() is the same in both providers, which is why it shows fine before adding to home screen I can provide screenshots, but it doesn't let me upload them
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23