{"id":125943,"date":"2022-06-09T14:00:06","date_gmt":"2022-06-09T14:00:06","guid":{"rendered":"https:\/\/developer.apple.com\/news\/?id=holzogai"},"modified":"2022-06-09T14:00:06","modified_gmt":"2022-06-09T14:00:06","slug":"challenge-throwback-thursday-with-swiftui","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2022\/06\/09\/challenge-throwback-thursday-with-swiftui\/","title":{"rendered":"Challenge: Throwback Thursday with SwiftUI"},"content":{"rendered":"<div class=\"inline-article-image\"><img decoding=\"async\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2022\/06\/challenge-throwback-thursday-with-swiftui.jpg\" data-hires=\"false\" alt><\/div>\n<p>Ready to add some chic retro styling to your SwiftUI views? In this challenge, we&#8217;re inviting you to create a SwiftUI view that reimagines your app or concept clothed in the interfaces of the past. Dress your UI up in the gorgeous grayscale of System 6, the linen of early iPhoneOS, or another time period entirely! <\/p>\n<p>We also welcome you to visit the SwiftUI Study Hall to collaborate on this challenge. Ask questions, connect with other developers, and share your creations.<\/p>\n<h3>Begin the challenge<\/h3>\n<p>To get started, pick a year, era, or color scheme. Then, snap a screen from your app and take it back to those glory days. If you need a boost (or a challenge), use a random number generator to choose a year between 1984 and 2013 \u2014 or open up a Swift Playground:<\/p>\n<pre class=\"code-source\"><code><span class=\"syntax-built_in\">print<\/span>(<span class=\"syntax-string\">\"Reimagine your app's interface like it's from the year <span class=\"syntax-subst\">\\(myCoolRetroYear)<\/span>!\"<\/span>)\n<span class=\"syntax-keyword\">let<\/span> myCoolRetroYear <span class=\"syntax-operator\">=<\/span> <span class=\"syntax-type\">Int<\/span>.random(in: <span class=\"syntax-number\">1984<\/span><span class=\"syntax-operator\">..&lt;<\/span><span class=\"syntax-number\">2013<\/span>)<\/code><\/pre>\n<p>Wherever you land, think about the Apple Design Languages prominent during that era. If you\u2019re newer to SwiftUI, experiment with Xcode Previews to see how much code the tools will write for you. If you have more experience, take this chance to play around. (And we love a reboot: If you joined us for the original 2021 SwiftUI Throwback Challenge, feel free to resurrect your 2021 project.)<\/p>\n<h3>Next steps<\/h3>\n<p>Share your time-machine masterpiece on Twitter with the hashtag #WWDC22Challenges, or share your work in the SwiftUI Study Hall. And if you\u2019d like to discuss other SwiftUI topics, join the team at events throughout the remainder of the week at WWDC22.<\/p>\n<p><a href=\"https:\/\/twitter.com\/search?q=%23WWDC22Challenges\" class=\"icon icon-after icon-chevronright\">Explore #WWDC22Challenges on social media<\/a><\/p>\n<p><a href=\"https:\/\/developer.apple.com\/wwdc22\/challenges\/terms\/WWDC22_Challenge_Terms_Conditions.pdf\" class=\"icon icon-after icon-chevronright\">Read the WWDC22 Challenges Terms and Conditions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ready to add some chic retro styling to your SwiftUI views? In this challenge, we&#8217;re inviting you to create a SwiftUI view that reimagines your app or concept clothed in the interfaces of the past. Dress your UI up in the gorgeous grayscale of System 6, the linen of early iPhoneOS, or another time period [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":125944,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-125943","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apple-developer-news"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/125943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=125943"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/125943\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/125944"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=125943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=125943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=125943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}