{"id":3181,"date":"2023-06-08T17:15:41","date_gmt":"2023-06-08T21:15:41","guid":{"rendered":"https:\/\/michaelrowe01.com\/?p=3181"},"modified":"2023-06-08T17:15:42","modified_gmt":"2023-06-08T21:15:42","slug":"build-widgets-for-the-smart-stack-on-apple-watch","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/build-widgets-for-the-smart-stack-on-apple-watch\/","title":{"rendered":"Build Widgets for the Smart Stack on Apple Watch"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"371\" data-attachment-id=\"3182\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/build-widgets-for-the-smart-stack-on-apple-watch\/attachment\/build-widgets-for-the\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?fit=1920%2C1080&amp;ssl=1\" data-orig-size=\"1920,1080\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Build-widgets-for-the\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?fit=660%2C371&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?resize=660%2C371&#038;ssl=1\" alt=\"\" class=\"wp-image-3182\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/Build-widgets-for-the.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Another Code along session, using AppIntents, WidgetKit and App Intents.&nbsp; Check out the code which is available at in the Session 10029 folder &#8211; <a href=\"https:\/\/developer.apple.com\/documentation\/watchOS-Apps\/updating-your-app-and-widgets-for-watchos-10\">https:\/\/developer.apple.com\/documentation\/watchOS-Apps\/updating-your-app-and-widgets-for-watchos-10<\/a>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Widget Configuration<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AppIntentConfiguration is new in WatchOS 10 and will be used in this project.<\/li>\n\n\n\n<li>Make sure you check out last years Dive in to App Intents to get started and then review Explore enhancements to App Intents<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Timeline Setup<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This holds all the data needs to render a widget on a particular date<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Widget Views<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>There was significant work on making a nice looking Widget, but for some reason I could not get the previews to show it.&nbsp; It kept crashing, and then it said there was no preview defined.&nbsp; Oh well, I can see it in the simulator<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Timeline<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make sure you enter based on date and future date, so that your fill the timeline with relevant data<\/li>\n\n\n\n<li>Also, setup a AppIntentRecommendation&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Relevance (this will prioritize when our widget should be prioritized on the Smart Stack)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Updating the relevance information at the right time in your app is key.&nbsp; This session does a great job of explaining the why of each update in the code.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Another Code along session, using AppIntents, WidgetKit and App Intents.&nbsp; Check out the code which is available at in the Session 10029 folder &#8211; https:\/\/developer.apple.com\/documentation\/watchOS-Apps\/updating-your-app-and-widgets-for-watchos-10&nbsp; Widget Configuration Timeline Setup Widget Views Timeline Relevance (this will prioritize when our widget should be prioritized on the Smart Stack)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"hide_page_title":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[109,705,549,680],"class_list":["post-3181","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-day-4","tag-smart-stack","tag-widgetkit","tag-wwdc23"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2aMa8-Pj","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/comments?post=3181"}],"version-history":[{"count":1,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3181\/revisions"}],"predecessor-version":[{"id":3183,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3181\/revisions\/3183"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=3181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=3181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=3181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}