{"id":38756,"date":"2023-03-14T15:45:39","date_gmt":"2023-03-14T19:45:39","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=38756"},"modified":"2023-03-14T15:45:59","modified_gmt":"2023-03-14T19:45:59","slug":"converting-the-streaks-apple-watch-app-to-swiftui","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/03\/14\/converting-the-streaks-apple-watch-app-to-swiftui\/","title":{"rendered":"Converting the Streaks Apple Watch App to SwiftUI"},"content":{"rendered":"<p><a href=\"https:\/\/crunchybagel.com\/converting-streaks-apple-watch-app-to-swiftui\/\">Quentin Zervaas<\/a>:<\/p>\n<blockquote cite=\"https:\/\/crunchybagel.com\/converting-streaks-apple-watch-app-to-swiftui\/\"><p>At this time, Streaks for Apple Watch still supports watchOS 6. Even though SwiftUI runs on watchOS 6, there were some roadblocks in our implementation, so if you&rsquo;re on watchOS 6, you&rsquo;ll still be running the WatchKit version.<\/p><p>[&#8230;]<\/p><p>In Streaks 9, this animated view on Apple Watch fully uses SwiftUI, not a series of animated images. This makes it much smoother, faster and nicer to interact with.<\/p><p>[&#8230;]<\/p><p>All of these edge cases are the primary reason why it&rsquo;s taken us two years to get all this working as well as we&rsquo;d like.<\/p><p>[&#8230;]<\/p><p>The multiline support in <code>TextField<\/code> on Apple Watch is buggy: while it would reserve 3 lines of space, it would just truncate the first line and not show subsequent lines.<\/p><\/blockquote>\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/02\/22\/the-making-of-ice-cubes\/\">The Making of Ice Cubes<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Quentin Zervaas: At this time, Streaks for Apple Watch still supports watchOS 6. Even though SwiftUI runs on watchOS 6, there were some roadblocks in our implementation, so if you&rsquo;re on watchOS 6, you&rsquo;ll still be running the WatchKit version.[&#8230;]In Streaks 9, this animated view on Apple Watch fully uses SwiftUI, not a series of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-03-14T19:45:44Z","apple_news_api_id":"6f4f72a7-03b2-4494-b3d7-ef3f23f256c0","apple_news_api_modified_at":"2023-03-14T19:46:01Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/Ab09ypwOyRJSz1-8_I_JWwA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[131,31,2185,26,71,2358,901,1812,1212,2219,2147],"class_list":["post-38756","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-ios","tag-ios-16","tag-iosapp","tag-programming","tag-streaks","tag-swift-programming-language","tag-swiftui","tag-watchos","tag-watchos-9","tag-watchos-app"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=38756"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38756\/revisions"}],"predecessor-version":[{"id":38757,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38756\/revisions\/38757"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=38756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=38756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=38756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}