<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cs193p on dev.endevour</title><link>https://devendevour.iankulin.com/tags/cs193p/</link><description>Recent content in Cs193p on dev.endevour</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Fri, 29 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://devendevour.iankulin.com/tags/cs193p/index.xml" rel="self" type="application/rss+xml"/><item><title>@ScaledMetric</title><link>https://devendevour.iankulin.com/scaledmetric/</link><pubDate>Fri, 29 Jul 2022 00:00:00 +0000</pubDate><guid>https://devendevour.iankulin.com/scaledmetric/</guid><description>&lt;p&gt;&lt;img src="https://devendevour.iankulin.com/images/screen-shot-2022-07-23-at-9.04.21-pm.jpg" alt="" class="img-responsive"&gt; &lt;/p&gt;
&lt;p&gt;I solved the problem (well, I googled a &lt;a href="https://stackoverflow.com/questions/72568296/sf-symbol-images-different-sizes" target="_blank" rel="noopener"&gt;stackoverflow result&lt;/a&gt; to the problem) in the previous post about the different heights of the SF Symbols. The answer was to put them in a frame and lock the height. A problem that then arises from that is that when the user changes the text size, they&amp;rsquo;ll be out of wack. Apple&amp;rsquo;s solution to that, introduced in iOS 14 is the &lt;a href="https://developer.apple.com/documentation/swiftui/scaledmetric" target="_blank" rel="noopener"&gt;@ScaledMetric property wrapper&lt;/a&gt; that does some magic I don&amp;rsquo;t fully understand yet.&lt;/p&gt;</description></item><item><title>Memorise Assignment 1</title><link>https://devendevour.iankulin.com/memorise-assignment-1/</link><pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate><guid>https://devendevour.iankulin.com/memorise-assignment-1/</guid><description>&lt;p&gt;&lt;img src="https://devendevour.iankulin.com/images/screen-shot-2022-07-23-at-7.33.03-pm.jpg" alt="" class="img-responsive"&gt; &lt;/p&gt;
&lt;p&gt;A small milestone achieved - I&amp;rsquo;ve completed the first assignment from the CS193p lecture series - some minor changes to the app being built in the lectures. There was a couple of things I was unhappy with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The text under the SF Symbols you can see in the preview above not being vertically aligned.&lt;/li&gt;
&lt;li&gt;Having duplicated code in my emoji arrays:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt; let animalEmojis = [&amp;#34;🐠&amp;#34;, &amp;#34;🐢&amp;#34;, &amp;#34;🦋&amp;#34;, &amp;#34;🐥&amp;#34;, &amp;#34;🐣&amp;#34;, &amp;#34;🐰&amp;#34;, &amp;#34;🐝&amp;#34;, &amp;#34;🦄&amp;#34;, &amp;#34;🐵&amp;#34;, &amp;#34;🐛&amp;#34;]
 let weatherEmojis = [&amp;#34;🌪&amp;#34;, &amp;#34;🌝&amp;#34;, &amp;#34;🌈&amp;#34;, &amp;#34;🔥&amp;#34;, &amp;#34;🌧&amp;#34;, &amp;#34;🌙&amp;#34;, &amp;#34;🌬&amp;#34;, &amp;#34;☃️&amp;#34;, &amp;#34;☔️&amp;#34;, &amp;#34;🌫&amp;#34;]
 let transportEmojis = [&amp;#34;🚗&amp;#34;, &amp;#34;🚕&amp;#34;, &amp;#34;🚲&amp;#34;, &amp;#34;🚚&amp;#34;, &amp;#34;🛵&amp;#34;, &amp;#34;🚜&amp;#34;, &amp;#34;🛴&amp;#34;, &amp;#34;🛺&amp;#34;, &amp;#34;🚃&amp;#34;, &amp;#34;🚡&amp;#34;]

 // I&amp;#39;m not happy with this duplication //TODO
 @State var emojis = [&amp;#34;🐠&amp;#34;, &amp;#34;🐢&amp;#34;, &amp;#34;🦋&amp;#34;, &amp;#34;🐥&amp;#34;, &amp;#34;🐣&amp;#34;, &amp;#34;🐰&amp;#34;, &amp;#34;🐝&amp;#34;, &amp;#34;🦄&amp;#34;, &amp;#34;🐵&amp;#34;, &amp;#34;🐛&amp;#34;]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This second problem is because I couldn&amp;rsquo;t just&lt;/p&gt;</description></item><item><title>CS193p</title><link>https://devendevour.iankulin.com/cs193p/</link><pubDate>Thu, 07 Jul 2022 00:00:00 +0000</pubDate><guid>https://devendevour.iankulin.com/cs193p/</guid><description>&lt;p&gt;I&amp;rsquo;ve loved the first couple of these &amp;ldquo;Getting Started with SwiftUI&amp;rdquo; &lt;a href="https://www.youtube.com/watch?v=bqu6BquVi2M" target="_blank" rel="noopener"&gt;lectures from Paul Hegarty&lt;/a&gt; at Stanford. He&amp;rsquo;s put a lot of thought into the sequence, and seems to address the questions that float up in my mind (with super clear explanations) just as I&amp;rsquo;m thinking of them. They also generously make the reading and homework assignments available at &lt;a href="https://cs193p.sites.stanford.edu/" target="_blank" rel="noopener"&gt;cs193p.sites.stanford.edu&lt;/a&gt; so it&amp;rsquo;s possible to treat it as a course which I have made a bit of a start on, before being distracted by building my own simple app.&lt;/p&gt;</description></item></channel></rss>