<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aaron Johal on Medium]]></title>
        <description><![CDATA[Stories by Aaron Johal on Medium]]></description>
        <link>https://medium.com/@aaronj0hal?source=rss-53d5d15faa65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*jc92ZEJ4RYQSsnIM_go1Hw.jpeg</url>
            <title>Stories by Aaron Johal on Medium</title>
            <link>https://medium.com/@aaronj0hal?source=rss-53d5d15faa65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:15:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aaronj0hal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What’s My Star Sign — First iOS app]]></title>
            <link>https://medium.com/@aaronj0hal/whats-my-star-sign-first-ios-app-d6c647df01b7?source=rss-53d5d15faa65------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c647df01b7</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Aaron Johal]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 07:47:14 GMT</pubDate>
            <atom:updated>2020-04-14T08:12:55.402Z</atom:updated>
            <content:encoded><![CDATA[<h3>What’s My Star Sign — First iOS app</h3><p>I want to learn how to code iOS apps so that I can have a better appreciation for the work that is involved in building products. As a result, I have started following online tutorials for <strong>Swift</strong> and want to share my progress.</p><p>Before I delve into my app, I have learnt the following concepts in Swift.</p><ul><li>Building a User Interface (how things are displayed on the screen)</li><li>Coding basics</li><li>Passing data between Screens</li><li>Interacting with Git (version control)</li></ul><p>I wanted to take a break from watching tutorials and test my knowledge by creating my first app.</p><h3><strong>What’s My Star Sign</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*S1k9rH6ea7mciKbrT6v64A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*6L5qh-84nXVCoUV2sTURNQ.png" /></figure><h4>App summary:</h4><ul><li>User types in their name and date of birth</li><li>User’s star sign is returned to them</li></ul><p>Here is the business logic that determines which star sign a user is.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7142c3ab8dba65f292b1ec8fa10479fa/href">https://medium.com/media/7142c3ab8dba65f292b1ec8fa10479fa/href</a></iframe><p>The Switch statement takes in the user’s DOB and checks one case at a time if it falls within the date range of a specific star sign. It was a trial and error process and lots of bug fixing before deciding on the logic above which used <a href="https://docs.swift.org/swift-book/ReferenceManual/Types.html"><strong>Tuples</strong></a><strong> . </strong>A Tuple is a comma-separated list of types enclosed in parenthesis e.g.</p><p>Capricorn — <em>(December 22-January 19)</em> would be <em>(22…31, 12) (01…19, 01).</em></p><p>This means the users birthday has to be in the range of the 22nd to 31st December (12th month) or the 1st to the 19th January (1st month).</p><h4>What did I learn?</h4><ul><li>Interface Builder (Displaying elements on a screen)is finicky.</li><li>Be logical and patient when fixing bugs. Using pen and paper helps!</li><li>Online tutorials can give me a false sense of security. I made more mistakes, learnt more and was rewarded more by exploring.</li></ul><p>The biggest obstacle to writing this post was worrying what others would think of my code. I hope by sharing my code I can encourage others who might feel the same way. Let me know what you think.</p><p><a href="https://github.com/aaronjohal/star-signs">https://github.com/aaronjohal/star-signs</a></p><p>I would like to thank <a href="https://medium.com/u/8d2e0353ec39">Mark Price</a> of Devslopes for the tutorials that have enabled me to build my first app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c647df01b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>