{"id":9,"date":"2022-03-26T04:07:00","date_gmt":"2022-03-26T04:07:00","guid":{"rendered":"http:\/\/www.bigbo.at\/?p=9"},"modified":"2022-04-03T05:19:28","modified_gmt":"2022-04-03T05:19:28","slug":"9","status":"publish","type":"post","link":"https:\/\/www.bigbo.at\/?p=9","title":{"rendered":"Day 13 &#8211; Protocols and Extensions"},"content":{"rendered":"\n<p>Since early on in the&nbsp;<a href=\"https:\/\/www.hackingwithswift.com\/100\/swiftui\">#100DaysOfSwiftUI<\/a>&nbsp;<a href=\"https:\/\/twitter.com\/twostraws\">@twostraws<\/a>&nbsp;has warned us about day 13.&nbsp; We didn&#8217;t know what was in day 13, but we knew it would take more than 1 hour.&nbsp; Knowing this, I had a strategy for the day.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Typically I attempt to bang out the videos, tests, and occasional checkpoints in the evening.&nbsp; But today being a weekend, I worked in some video watching throughout the day.&nbsp; By the evening, all that was left was protocol extensions and the checkpoint.&nbsp; I even had the energy to watch https:\/\/www.hackingwithswift.com\/quick-start\/beginners\/how-to-get-the-most-from-protocol-extensions.<\/p>\n\n\n\n<p>I&#8217;m still here, still learning and still having fun.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"swift\" class=\"language-swift line-numbers\">protocol Person {\n    var energyLevel: String { get set }\n    func status()\n}\nextension Person {\n    func status(){\n        print (\"My energy level is : \\(energyLevel)\")\n    }\n}\nstruct Programmer: Person {\n    var energyLevel: String\n}\nvar me = Programmer(energyLevel: \"High\")\nme.status()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Since early on in the&nbsp;#100DaysOfSwiftUI&nbsp;@twostraws&nbsp;has warned us about day 13.&nbsp; We didn&#8217;t know what was in day 13, but we knew it would take more than 1 hour.&nbsp; Knowing this, I had a strategy for the day.&nbsp;&nbsp; Typically I attempt to bang out the videos, tests, and occasional checkpoints in<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[5,7,6],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","tag-100daysofswiftui","tag-code","tag-hackingwithswift"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9"}],"version-history":[{"count":3,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=\/wp\/v2\/posts\/9\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/www.bigbo.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigbo.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}