{"id":1365,"date":"2021-06-03T06:00:59","date_gmt":"2021-06-03T06:00:59","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=1365"},"modified":"2021-06-03T06:01:03","modified_gmt":"2021-06-03T06:01:03","slug":"the-code-hub-adventures-new-swift-playgrounds","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/","title":{"rendered":"The Code Hub: Adventures! New Swift Playgrounds"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1366\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/newadventureplaygrounds\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?fit=1930%2C1000&amp;ssl=1\" data-orig-size=\"1930,1000\" data-comments-opened=\"1\" data-image-title=\"NewAdventurePlaygrounds\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?fit=840%2C436&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=512%2C266&#038;ssl=1\" alt=\"\" class=\"wp-image-1366\" width=\"512\" height=\"266\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=1024%2C531&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=300%2C155&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=768%2C398&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=1536%2C796&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?resize=1200%2C622&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?w=1930&amp;ssl=1 1930w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 512px) 85vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Inspired by some recent teacher questions via email and <a href=\"http:\/\/twitter.com\/thecodehubIE\">Twitter<\/a>, I threw together some more advanced Swift Playgrounds.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adventures!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Right now there are two of them. As Swift Playgrounds, they&#8217;re designed to run in the Playgrounds app on your iPad, so you can take your code on the go with you, or monkey around with them in the Playgrounds app on your Mac. Playgrounds is a great environment for tinkering with code and it just keeps getting better and better.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I split them into a separate feed from our normal playground feed because the original is aimed at beginners, learning to code. This new set of playgrounds comes with fewer instructions and tackles more complex material.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add the feed from<a href=\"https:\/\/www.thecodehub.ie\/playgrounds\/\"> our playgrounds page<\/a>, if you&#8217;re on an iPad. If you&#8217;re using Playgrounds on a Mac, you can select File > Add Subscription&#8230; and add this URL: https:\/\/www.thecodehub.ie\/playgrounds\/adventures\/feed.json<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1367\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/subscribeadventures\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?fit=804%2C264&amp;ssl=1\" data-orig-size=\"804,264\" data-comments-opened=\"1\" data-image-title=\"SubscribeAdventures\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?fit=804%2C264&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?resize=402%2C132&#038;ssl=1\" alt=\"\" class=\"wp-image-1367\" width=\"402\" height=\"132\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?w=804&amp;ssl=1 804w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?resize=300%2C99&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/SubscribeAdventures.png?resize=768%2C252&amp;ssl=1 768w\" sizes=\"auto, (max-width: 402px) 85vw, 402px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SwiftUI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first playground tackles the @StateObject and ObservableObjects in SwiftUI, &#8220;the new hotness,&#8221; as my old boss would say.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this playground, we use new files in the UserModule to create a model that will hold minutes for a timer (seconds, really)&#8230; we show you how to organize your code to keep the &#8220;model&#8221; in one place that you could use from multiple locations in your SwiftUI-based app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">UIView and Animation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The second playground shows off creating a UIView in code, making it the live view and animating an image view across the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s a nice way to start playing with animation and checking out all the properties you can animate on a UIView.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More to Come<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are more to come, of course, this is just the start. Hopefully these playgrounds will give you an idea for what you can do with the Playgrounds app. Post-WWDC, I&#8217;m sure, we&#8217;ll have lots more goodies to explore all the fun new toys we have to play with.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-medium\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1368\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/matticon21\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&amp;ssl=1\" data-orig-size=\"421,421\" data-comments-opened=\"1\" data-image-title=\"MattIcon21\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?fit=421%2C421&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=300%2C300&#038;ssl=1\" alt=\"\" class=\"wp-image-1368\" width=\"300\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/MattIcon21.png?w=421&amp;ssl=1 421w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">So <a href=\"https:\/\/www.thecodehub.ie\/playgrounds\/\">check them out and try your hand with some Swift code on the go<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspired by some recent teacher questions via email and Twitter, I threw together some more advanced Swift Playgrounds. Adventures! Right now there are two of them. As Swift Playgrounds, they&#8217;re designed to run in the Playgrounds app on your iPad, so you can take your code on the go with you, or monkey around with &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The Code Hub: Adventures! New Swift Playgrounds&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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":[8],"tags":[],"class_list":["post-1365","post","type-post","status-publish","format-standard","hentry","category-swift-playgrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"Inspired by some recent teacher questions via email and Twitter, I threw together some more advanced Swift Playgrounds. Adventures! Right now there are two of them. As Swift Playgrounds, they&#8217;re designed to run in the Playgrounds app on your iPad, so you can take your code on the go with you, or monkey around with &hellip; Continue reading &quot;The Code Hub: Adventures! New Swift Playgrounds&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code Hub\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/thecodehub\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-03T06:00:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-03T06:01:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds-1024x531.png\" \/>\n<meta name=\"author\" content=\"mhanlon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:site\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mhanlon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"The Code Hub: Adventures! New Swift Playgrounds\",\"datePublished\":\"2021-06-03T06:00:59+00:00\",\"dateModified\":\"2021-06-03T06:01:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/\"},\"wordCount\":349,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NewAdventurePlaygrounds-1024x531.png\",\"articleSection\":[\"Swift Playgrounds\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/\",\"name\":\"The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NewAdventurePlaygrounds-1024x531.png\",\"datePublished\":\"2021-06-03T06:00:59+00:00\",\"dateModified\":\"2021-06-03T06:01:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NewAdventurePlaygrounds.png?fit=1930%2C1000&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/NewAdventurePlaygrounds.png?fit=1930%2C1000&ssl=1\",\"width\":1930,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2021\\\/06\\\/03\\\/the-code-hub-adventures-new-swift-playgrounds\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Code Hub: Adventures! New Swift Playgrounds\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"name\":\"The Code Hub\",\"description\":\"News from the Code Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\",\"name\":\"The Code Hub\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"width\":226,\"height\":264,\"caption\":\"The Code Hub\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/thecodehub\",\"https:\\\/\\\/x.com\\\/thecodehubIE\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCx4bznoGDfjJRPfTa4LF9dA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\",\"name\":\"mhanlon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"caption\":\"mhanlon\"},\"sameAs\":[\"https:\\\/\\\/www.thecodehub.ie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/","og_locale":"en_US","og_type":"article","og_title":"The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub","og_description":"Inspired by some recent teacher questions via email and Twitter, I threw together some more advanced Swift Playgrounds. Adventures! Right now there are two of them. As Swift Playgrounds, they&#8217;re designed to run in the Playgrounds app on your iPad, so you can take your code on the go with you, or monkey around with &hellip; Continue reading \"The Code Hub: Adventures! New Swift Playgrounds\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2021-06-03T06:00:59+00:00","article_modified_time":"2021-06-03T06:01:03+00:00","og_image":[{"url":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds-1024x531.png","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"The Code Hub: Adventures! New Swift Playgrounds","datePublished":"2021-06-03T06:00:59+00:00","dateModified":"2021-06-03T06:01:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/"},"wordCount":349,"commentCount":1,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds-1024x531.png","articleSection":["Swift Playgrounds"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/","url":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/","name":"The Code Hub: Adventures! New Swift Playgrounds &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds-1024x531.png","datePublished":"2021-06-03T06:00:59+00:00","dateModified":"2021-06-03T06:01:03+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?fit=1930%2C1000&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2021\/06\/NewAdventurePlaygrounds.png?fit=1930%2C1000&ssl=1","width":1930,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2021\/06\/03\/the-code-hub-adventures-new-swift-playgrounds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"The Code Hub: Adventures! New Swift Playgrounds"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodehub.ie\/news\/#website","url":"https:\/\/www.thecodehub.ie\/news\/","name":"The Code Hub","description":"News from the Code Hub","publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodehub.ie\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodehub.ie\/news\/#organization","name":"The Code Hub","url":"https:\/\/www.thecodehub.ie\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","width":226,"height":264,"caption":"The Code Hub"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/thecodehub","https:\/\/x.com\/thecodehubIE","https:\/\/www.youtube.com\/channel\/UCx4bznoGDfjJRPfTa4LF9dA"]},{"@type":"Person","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd","name":"mhanlon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","caption":"mhanlon"},"sameAs":["https:\/\/www.thecodehub.ie"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ABLU-m1","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/comments?post=1365"}],"version-history":[{"count":1,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1365\/revisions"}],"predecessor-version":[{"id":1369,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/1365\/revisions\/1369"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=1365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=1365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=1365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}