{"id":125568,"date":"2022-06-09T14:00:57","date_gmt":"2022-06-09T14:00:57","guid":{"rendered":"https:\/\/developer.apple.com\/news\/?id=ycmer78i"},"modified":"2022-06-09T14:00:57","modified_gmt":"2022-06-09T14:00:57","slug":"challenge-swiftui-animation-extravaganza","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2022\/06\/09\/challenge-swiftui-animation-extravaganza\/","title":{"rendered":"Challenge: SwiftUI Animation Extravaganza!"},"content":{"rendered":"<div class=\"inline-article-image\"><img decoding=\"async\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2022\/06\/challenge-swiftui-animation-extravaganza.jpg\" data-hires=\"false\" alt><\/div>\n<p>Get your imagination ready for some high-quality visualization: We invite you to envision an animation and bring it to life using SwiftUI and Swift Playgrounds. Your animation can include text, shapes, colors, sounds, explosions, dancing cats \u2014 whatever brings you joy. <\/p>\n<p>You could create a visualization that melts colors across an iPad screen as you tilt the device using CoreMotion, or code an animation that responds to environmental sounds from the microphone. Maybe your animation is generated by an AI; maybe it\u2019s manually created through custom gestures.<\/p>\n<p>Visit the Developer Tools 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 help get you started, check out the Animating Shapes project in Swift Playgrounds, which teaches you the basics of creating animations in SwiftUI and lets you browse a range of sample animations created using the framework. Use this as a jumping-off point for your own animation \u2014 or create a new project and start hacking from scratch.<\/p>\n<p><a href=\"https:\/\/apps.apple.com\/us\/app\/swift-playgrounds\/id1496833156?mt=12\" class=\"icon icon-after icon-chevronright\">Download Swift Playgrounds for macOS<\/a><\/p>\n<p><a href=\"https:\/\/apps.apple.com\/us\/app\/swift-playgrounds\/id908519492\" class=\"icon icon-after icon-chevronright\">Download Swift Playgrounds for iOS<\/a><\/p>\n<p><a href=\"https:\/\/developer.apple.com\/swift-playgrounds\/\" class=\"icon icon-after icon-chevronright\">Learn more about Swift Playgrounds<\/a><\/p>\n<p>Need a bit of inspiration? Check out Animating Shapes, navigate to RollinRainbow.swift, and check out the wave effect applied across each column of a grid. Elsewhere, visit DancingDots.swift to see how you can use observable objects to animate a dynamic range of scale, color, and offset changes. <\/p>\n<p>To find more resources, check out &#8220;Add rich graphics to your SwiftUI app&#8221; from WWDC21 or the web tutorial &#8220;Animating Views and Transitions.&#8221; And you can also explore using the SwiftUI Canvas to draw rich, dynamic graphics. Good luck! <\/p>\n<section class=\"grid activity\">\n<section class=\"row\">\n<section class=\"column large-4 small-4 no-padding-top no-padding-bottom\"> <a href=\"https:\/\/developer.apple.com\/wwdc21\/10021\" class=\"activity-image-link\"> <img decoding=\"async\" class=\"actiity-image medium-scale\" width=\"250\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2022\/06\/challenge-swiftui-animation-extravaganza-1.jpg\" data-hires=\"false\" alt> <\/a> <\/section>\n<section class=\"column large-8 small-8 padding-left-small padding-top-small padding-bottom-small no-padding-top no-padding-bottom\"> <a href=\"https:\/\/developer.apple.com\/wwdc21\/10021\"> <\/p>\n<h4 class=\"no-margin-bottom activity-title\">Add rich graphics to your SwiftUI app<\/h4>\n<p class=\"activity-description\">Learn how you can bring your graphics to life with SwiftUI. We\u2019ll begin by working with safe areas, including the keyboard safe area, and learn how to design beautiful, edge-to-edge graphics that won\u2019t underlap the on-screen keyboard. We\u2019ll also explore the materials and vibrancy you can use&#8230;<\/p>\n<p> <\/a> <\/section>\n<\/section>\n<\/section>\n<p><a href=\"https:\/\/developer.apple.com\/tutorials\/SwiftUI\/animating-views-and-transitions\" class=\"icon icon-after icon-chevronright\">Animating Views and Transitions<\/a><\/p>\n<p><a href=\"https:\/\/developer.apple.com\/documentation\/SwiftUI\/Canvas\" class=\"icon icon-after icon-chevronright\">Canvas<\/a><\/p>\n<p>Share your SwiftUI animations on Twitter with the hashtag #WWDC22Challenges, or show off your work in the Developer Tools Study Hall. And if you\u2019d like to discuss animation or other aspects of SwiftUI and Swift Playgrounds, join the teams 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>Get your imagination ready for some high-quality visualization: We invite you to envision an animation and bring it to life using SwiftUI and Swift Playgrounds. Your animation can include text, shapes, colors, sounds, explosions, dancing cats \u2014 whatever brings you joy. You could create a visualization that melts colors across an iPad screen as you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":125569,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-125568","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\/125568","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=125568"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/125568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/125569"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=125568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=125568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=125568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}