{"id":647,"date":"2020-05-20T04:31:00","date_gmt":"2020-05-20T04:31:00","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=647"},"modified":"2020-05-19T22:41:54","modified_gmt":"2020-05-19T22:41:54","slug":"coding-at-home-may-20th-build-an-aquarium-app-part-3","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/","title":{"rendered":"Coding at Home: May 20th, Build an Aquarium App, Part 3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Join us today for probably our last session on building an app in Swift Playgrounds! <a href=\"https:\/\/Twitch.tv\/thecodehub\">Live on Twitch at 1pm, Irish time<\/a>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s so much more we could do; we could spend weeks refining our work so far into a game or a full-fledged app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Today&#8217;s Session<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Today we&#8217;re going to focus on rudimentary hit testing&#8230; to see when one component we&#8217;ve added to the space is near another one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll use some functions defined for us inside the guts of the playground, including a method on the <code>Point<\/code> type called <code>distance(from:)<\/code>. This will return us a <code>Double<\/code>, which we can use to figure out if two components appear to be touching or not.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"650\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/image-34-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=2656%2C1824&amp;ssl=1\" data-orig-size=\"2656,1824\" data-comments-opened=\"1\" data-image-title=\"image-34\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1\" alt=\"\" class=\"wp-image-650\" width=\"486\" height=\"334\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?w=2656&amp;ssl=1 2656w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=300%2C206&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=1024%2C703&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=768%2C527&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=1536%2C1055&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=2048%2C1406&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?resize=1200%2C824&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?w=1680&amp;ssl=1 1680w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?w=2520&amp;ssl=1 2520w\" sizes=\"auto, (max-width: 486px) 85vw, 486px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">This would be an important thing to calculate if we were to make a game where collisions with other objects might be a bad thing (or a good thing, depending on your game).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll also harken back to chapter 10 of Everyone Can Code Puzzles and do some refactoring&#8230; we&#8217;ve been slapping code together without too much foresight thus far. Now we&#8217;ll revise our code a bit and make things that little bit neater.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1950\" height=\"524\" data-attachment-id=\"651\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/image-35-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?fit=1950%2C524&amp;ssl=1\" data-orig-size=\"1950,524\" data-comments-opened=\"1\" data-image-title=\"image-35\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?fit=840%2C226&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?fit=840%2C226&amp;ssl=1\" alt=\"\" class=\"wp-image-651\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?w=1950&amp;ssl=1 1950w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?resize=300%2C81&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?resize=1024%2C275&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?resize=768%2C206&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?resize=1536%2C413&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?resize=1200%2C322&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-35.png?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A major goal of refactoring is often to make life easier for our future self: when we sit back down to go further with our app or game we&#8217;ll thank ourself for packaging code into a function or storing something in a variable so we could use it later.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See you at 1pm!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join us today for probably our last session on building an app in Swift Playgrounds! Live on Twitch at 1pm, Irish time! There\u2019s so much more we could do; we could spend weeks refining our work so far into a game or a full-fledged app. Today&#8217;s Session Today we&#8217;re going to focus on rudimentary hit &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding at Home: May 20th, Build an Aquarium App, Part 3&#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_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Coding at Home: May 20th, Build an Aquarium App, Part 3\n\nLet's do a little refactoring, some rudimentary hit testing, live!\nhttps:\/\/twitch.tv\/thecodehub","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":[9,6,7,4,8],"tags":[],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-coding-at-home","category-events","category-learn-to-code-classes","category-programming","category-swift-playgrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub<\/title>\n<meta name=\"description\" content=\"We finish off, for now, building our app in Swift Playgrounds. We&#039;ll reorganize some of our code, add some cool new functions, pave the way for the future.\" \/>\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\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"We finish off, for now, building our app in Swift Playgrounds. We&#039;ll reorganize some of our code, add some cool new functions, pave the way for the future.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/\" \/>\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=\"2020-05-20T04:31:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Coding at Home: May 20th, Build an Aquarium App, Part 3\",\"datePublished\":\"2020-05-20T04:31:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/\"},\"wordCount\":256,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i1.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/image-34.png?fit=840%2C577&amp;ssl=1\",\"articleSection\":[\"Coding at Home\",\"Events\",\"Learn to Code Classes\",\"Programming\",\"Swift Playgrounds\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/\",\"name\":\"Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i1.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/image-34.png?fit=840%2C577&amp;ssl=1\",\"datePublished\":\"2020-05-20T04:31:00+00:00\",\"description\":\"We finish off, for now, building our app in Swift Playgrounds. We'll reorganize some of our code, add some cool new functions, pave the way for the future.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i1.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/image-34.png?fit=840%2C577&amp;ssl=1\",\"contentUrl\":\"https:\\\/\\\/i1.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/image-34.png?fit=840%2C577&amp;ssl=1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/05\\\/20\\\/coding-at-home-may-20th-build-an-aquarium-app-part-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding at Home: May 20th, Build an Aquarium App, Part 3\"}]},{\"@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":"Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub","description":"We finish off, for now, building our app in Swift Playgrounds. We'll reorganize some of our code, add some cool new functions, pave the way for the future.","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\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/","og_locale":"en_US","og_type":"article","og_title":"Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub","og_description":"We finish off, for now, building our app in Swift Playgrounds. We'll reorganize some of our code, add some cool new functions, pave the way for the future.","og_url":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2020-05-20T04:31:00+00:00","og_image":[{"url":"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Coding at Home: May 20th, Build an Aquarium App, Part 3","datePublished":"2020-05-20T04:31:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/"},"wordCount":256,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1","articleSection":["Coding at Home","Events","Learn to Code Classes","Programming","Swift Playgrounds"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/","url":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/","name":"Coding at Home: May 20th, Build an Aquarium App, Part 3 &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1","datePublished":"2020-05-20T04:31:00+00:00","description":"We finish off, for now, building our app in Swift Playgrounds. We'll reorganize some of our code, add some cool new functions, pave the way for the future.","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#primaryimage","url":"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1","contentUrl":"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/05\/image-34.png?fit=840%2C577&amp;ssl=1"},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/05\/20\/coding-at-home-may-20th-build-an-aquarium-app-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Coding at Home: May 20th, Build an Aquarium App, Part 3"}]},{"@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-ar","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/647","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=647"}],"version-history":[{"count":3,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/647\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}