<?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 Konstantinos Nikoloutsos on Medium]]></title>
        <description><![CDATA[Stories by Konstantinos Nikoloutsos on Medium]]></description>
        <link>https://medium.com/@kwnstantinosnikoloutsos?source=rss-d5f4132680a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VVavPYQDm-aA7m_2won5Yw.jpeg</url>
            <title>Stories by Konstantinos Nikoloutsos on Medium</title>
            <link>https://medium.com/@kwnstantinosnikoloutsos?source=rss-d5f4132680a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:16:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kwnstantinosnikoloutsos/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[Save time with XCFrameworks]]></title>
            <link>https://kwnstantinosnikoloutsos.medium.com/save-time-with-xcframeworks-c12402abfc35?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12402abfc35</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[xcframework]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 07:51:44 GMT</pubDate>
            <atom:updated>2024-03-05T07:51:44.840Z</atom:updated>
            <content:encoded><![CDATA[<h4>Make your CI and your build times go faster.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMDMPngydnjGJ4B3yaKXnQ.jpeg" /></figure><h3>Intro 📦</h3><p>Have you ever thought how you can decrease the build time of your application? Have you ever wondered why you have to build something again and again instead of build it once and distribute it? I did have this thoughts in my head until recently that I learned about XCFrameworks.</p><p>XCFrameworks is a supported file by Xcode, hence the name, which allows distributing pre-compiled code. Developers can easily generate and use XCFrameworks in XCode by just dragging it inside the Framework and libraries in project target settings general tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gc1I_WjDlY9-v1vTfXWIfA.png" /><figcaption>Adding a xcframework to a test target.</figcaption></figure><blockquote>💡 XCFramework is also a nice way to ship a closed source product to your clients. I remember in the past integrating the famous bitly URL shortener which did not want me to look at how their algorithm works.</blockquote><p>It is worth remembering that the .xcframework essentially it’s a container of different .framework files for different platforms including simulators. It is usually depicted with a blue suitcase where the .framework is represented as a yellow one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dhm188zmnrfEWPXm.png" /><figcaption>Illustration of how axcframework is composed of</figcaption></figure><h4>Use case:</h4><p>SwiftMacro has a dependency to swift-syntax which takes some time to build. By using xcframeworks this guy <a href="https://medium.com/u/d8aef3d4b3ad">Šimon Java</a> ended up making it 9x faster (see <a href="https://github.com/sjavora/swift-syntax-xcframeworks">here</a>). So are you still not convinced to use XCFrameworks on your project?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQ19d4YwAfbV5RIDizlNmA@2x.png" /></figure><h4>How to create your XCFrameworks:</h4><p>Apple provides with a detailed <a href="https://developer.apple.com/documentation/xcode/creating-a-multi-platform-binary-framework-bundle">guide</a> on how you can create your own XCFramework. Personally I find it much easier to use a community tool which is called <a href="https://github.com/unsignedapps/swift-create-xcframework">swift-create-xcframework</a>.</p><blockquote>⚠️ This tool will not work with xcode15 so please use this <a href="https://github.com/samadhiBot/swift-create-xcframework">fork</a> which resolves the issue at bsneed/xcode15_fix branch. After cloning install it by running make install.</blockquote><p>Recently I created a XCFramework for<a href="https://github.com/pointfreeco/swift-snapshot-testing"> swift-snapshot-testing</a> by running the following command:</p><pre>swift-create-xcframework /<br>--output xcframeworks-debug /<br>--platform ios /<br>--xc-setting ENABLE_TESTING_SEARCH_PATHS=YES</pre><blockquote>📙 The ENABLE_TESTING_SEARCH_PATHS is used because snapshot testing has a dependency to XCTest and without it the build fails.</blockquote><p>The swift-create-xcframework essentially is a wrapper on top of xcodebuild that streamlines this creation process. For your interest, under the hood it calls xcodebuild archive .. .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVGpghGpO8JLCnCnA-MFbA@2x.png" /><figcaption>Result of running the above command. As you can see 2 different folders are generated. One for simulator and one for physical device.</figcaption></figure><p>Then I dragged it into the test target Framework &amp; Librariesand that’s it 🎉<br>No reason to build it again. Imagine how much time we saved from our CI and fellow programmers on our team.</p><h4>:</h4><h4>Quick tips for those you made it too far 🎁 :</h4><p>🎁 Did you know that SPM packages can ship binary code with XCFrameworks? See the WWDC20 video about it <a href="https://developer.apple.com/videos/play/wwdc2020/10147/">here</a> .</p><p>🎁 Also did you know that it is recommended for xcframeworks to be signed to avoid an attacker injecting malicious code in your app? Learn more in WWDC23 video <a href="https://developer.apple.com/videos/play/wwdc2023/10061/">here</a>.</p><p>If you liked this article don’t forget to leave a 👏 and share your opinion in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12402abfc35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Save your time with this Github+Jira automation ]]></title>
            <link>https://kwnstantinosnikoloutsos.medium.com/save-your-time-with-this-github-jira-automation-fade5e77eec4?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/fade5e77eec4</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 12:59:48 GMT</pubDate>
            <atom:updated>2023-02-26T13:05:58.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*sD0NyrqSH39pIIl12G0C9w.jpeg" /></figure><blockquote>“Special thanks to my colleague and friend <a href="https://medium.com/u/1baf2da1feeb">Βάιος-Παναγιώτης Τσιτσώνης</a> | <a href="https://github.com/St4B">St4B</a> for giving me the idea and a basic implementation“</blockquote><blockquote><a href="https://www.atlassian.com/software/jira">J</a>IRA is among the world’s most popular project management and workflow management tools for agile software development teams and tech startups.</blockquote><p>We developers use Github for our everyday work and often open issues when we find a problem or want to propose an enhancement. 🐙</p><p>On planning sessions before adding this automation, in <a href="https://www.theblueground.com/">Blueground</a>, the moment we decided as a team to implement a Github issue we had to <strong>manually</strong> go to JIRA and create a ticket. We do that because other team members can see what we are working on in the JIRA platform.</p><p>Imagine having to manually create many Github Issues to JIRA tickets.🤔<br>What if I told you that you are waisting your time on planning sessions ⏰</p><blockquote>We developers need to focus more on actual planning than doing “data entry” 😆</blockquote><p>What if there was a better way?<br>Yes, we can automate this 🥳, and I will show you how step by step!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*IDThjBR1VdnYEFa5hyD6pQ.png" /><figcaption>By the end of this article wou will achieve this 💙</figcaption></figure><p>By the end of this article, you will have:</p><p>✅ Saved your team’s precious time on planning ⏲<br>✅ Your teamates will know which Github issues are tracked by jira. (since issues will be marked with jira label) 📓<br>✅ Made your first github action automation (if not already) 🎉</p><h4>Let’s start — Create a Github action</h4><ul><li>Open your repository in the root level and create a folder named .github .</li><li>Inside this folder create another one named workflows .</li><li>Then create a github action yaml with whatever name you wish.(I used make_jira_ticket.yml)</li><li>Now put the following yaml inside it 👇.</li></ul><pre>name: &quot;Open Jira ticket&quot;<br>on:<br>  issues:<br>    types:<br>      - labeled<br><br>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    if: github.event.label.name == &#39;jira&#39;<br>    name: Open Jira ticket<br>    steps:<br>      - name: Open ticket<br>        run: |<br>          curl \<br>          -D- \<br>          --user &#39;${{ secrets.JIRA_USER_EMAIL }}:${{ secrets.JIRA_API_TOKEN }}&#39; \<br>          -X POST \<br>          --data &#39;{<br>           &quot;fields&quot;:{<br>                &quot;project&quot;:{<br>                   &quot;key&quot;:&quot;GX&quot;<br>                },<br>                &quot;summary&quot;:&quot;iOS - ${{ github.event.issue.title }}&quot;,<br>                &quot;description&quot;:{<br>                   &quot;type&quot;:&quot;doc&quot;,<br>                   &quot;version&quot;:1,<br>                   &quot;content&quot;:[<br>                      {<br>                         &quot;type&quot;:&quot;paragraph&quot;,<br>                         &quot;content&quot;:[<br>                            {<br>                               &quot;text&quot;:&quot;https://github.com/bluegroundltd/guest-app-ios/issues/${{ github.event.issue.number }}&quot;,<br>                               &quot;type&quot;:&quot;text&quot;,<br>                                &quot;marks&quot;:[<br>                                  {<br>                                     &quot;type&quot;:&quot;link&quot;,<br>                                     &quot;attrs&quot;: {<br>                                        &quot;href&quot;: &quot;https://github.com/bluegroundltd/guest-app-ios/issues/${{ github.event.issue.number }}&quot;,<br>                                        &quot;title&quot;: &quot;Issue-${{ github.event.issue.number }}&quot;<br>                                     }<br>                                  }<br>                               ]<br>                            }<br>                         ]<br>                      }<br>                   ]<br>                },<br>                &quot;issuetype&quot;:{<br>                   &quot;name&quot;:&quot;Task&quot;<br>                },<br>                &quot;assignee&quot;: {<br>                  &quot;id&quot;: null<br>                }<br>             }<br>          }&#39; \<br>          --header &#39;Accept: application/json&#39; \<br>          --header &#39;Content-Type: application/json&#39; \<br>          &quot;https://devblueground.atlassian.net/rest/api/3/issue&quot;  \<br>          -o response.json<br>      - name: Comment on issue<br>        run: |<br>          jira_key=$(cat response.json | jq -r &quot;.key&quot;)<br>          gh issue comment $ISSUE --body &quot;Hey beegee @${{ github.actor }} 👋,<br>          a [JIRA ticket](https://devblueground.atlassian.net/browse/$jira_key) was created.<br>          &lt;p align=&quot;right&quot;&gt; Generated by &lt;a href=&quot;https://github.com/bluegroundltd/guest-app-ios/blob/develop/.github/workflows/make_jira_ticket.yml&quot;&gt;this workflow&lt;/a&gt; 💙 &lt;/p&gt;&quot;<br>        env:<br>          GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}<br>          ISSUE: ${{ github.event.issue.html_url }}</pre><p>In high level, this action will be triggered only when a jira label is added to an issue. This action first make a call to JIRA Rest API to create the ticket and lastly with the help of github CLI it makes a comment on the issue and exposes the Jira URL.</p><h4>Finishing up the action &amp; adjust to your needs</h4><p>Great job you’re almost there 👏</p><p>You’ve made a github-action ready to be used. But does it actually work? On new label jira is triggered but not working yet. That’s because the action expects as to set some GitHub secrets and configure it to our needs.</p><ol><li>You have to create a JIRA token. Follow this <a href="https://www.ibm.com/docs/en/cdfsp/7.6.1.x?topic=jira-creating-api-token-in">guide</a>.<br>Once created make a github repository secret named JIRA_API_TOKEN <br>Also make another secret with the associated email you created the above token and save it in JIRA_USER_EMAIL</li><li>Last but not least make a github personal access token and make a secret with name REPO_ACCESS_TOKEN . This is needed so that when Jira ticket is created to report the URL back into the issue as a comment.</li></ol><p>3. Make sure in the github action you have used the correct jira base API URL. In my company that is `https://devblueground.atlassian.net. Your company may have a different hosting domain. (You can easily find the domain by taking a look at your browser’s URL)</p><p>4. Now you have to replace with your JIRA project name. <br>Your JIRA may have more than 1 projects. Go back to the action and replace the `fields.project.key` with yours. (in our case was GX)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*pslSrCO-77Vj86xWww0qVg@2x.png" /><figcaption>Here is how to find your project name in your JIRA</figcaption></figure><blockquote>Github Secrets are encrypted variables that you create in an organization, repository, or repository environment. The secrets that you create are available to use in GitHub Actions workflows.<br>Secrets in github actions are accessed under <em>${{ secrets.XXX }}</em></blockquote><p>5. If you want to customize even more take a look at what <a href="https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/">JIRA API</a> offers.</p><h4>Conngratulations — your have saved your team’s time 🎉</h4><p>Now you can add label named jira on your issue and it will make a JIRA ticket for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uBP-52JIq6Fn6LU_MTjIYg.png" /><figcaption>The end result 👆</figcaption></figure><p>Now you can copy-paste this github action across all your repositories.</p><p>I hope you liked this automation as much as I did. If you have more automations in mind that can save our time don’t hesitate to share.<br>I would be really curious to take a look at them 💙</p><p>If you liked this article don’t forget to leave a 👏<br>See you in the next article 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fade5e77eec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run swift on linux when on MacOS]]></title>
            <link>https://kwnstantinosnikoloutsos.medium.com/how-to-run-swift-on-linux-when-on-macos-4a489831a2?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a489831a2</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Sun, 18 Dec 2022 22:30:32 GMT</pubDate>
            <atom:updated>2022-12-18T22:34:50.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*904Fxn2XJtBrit17viAjAg.jpeg" /><figcaption>Photo by ThisIsEngineering</figcaption></figure><p>Why would you ever want to run swift on a linux machine? That’s a valid question until you:</p><ul><li>Realize that macOS is way more expensive compared to linux machines on your CI 💸</li><li>You just want to test your swift library works on linux (e.g danger-swift)</li></ul><p>By the end of this article you will have run swift on linux entirely for free 😍</p><h4>1. <strong>Download docker desktop</strong> 🐳</h4><p>Go to <a href="https://www.docker.com/">https://www.docker.com/</a> and download the appropriate one based on your machine.</p><p>After downloading it, install it just like any other app.</p><h4>2. <strong>Setup and run Ubuntu in docker</strong></h4><p>For doing that you have to download the ubuntu image. Open your terminal and type</p><pre>docker pull ubuntu</pre><blockquote>current version of ubuntu is 22.04</blockquote><p>Then you have to create an instance(container) of that image.</p><pre>docker run ubuntu</pre><p>After that a container with the ubuntu image will be running. Use the following command in your terminal to connect as a root.</p><pre>docker exec -u root -t -i &lt;container_id&gt; /bin/bash</pre><blockquote>&lt;container_id&gt; can be found in docker desktop app containers tab.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*OQK6TCfjaIkiGmr3-KPZ2Q@2x.png" /><figcaption>After connecting to your container.</figcaption></figure><p><strong>Congrats</strong>, finally your Mac runs ubuntu 🍭 💪</p><h4><strong>3. Install swift</strong></h4><p>Try running swift in the terminal now will give bash: swift: command not found also git is not installed as well.</p><p>No worries we have to install them. In ubuntu there is a command apt that let us download from the outside world.</p><p>First, there are few packages or dependencies we required to install and configure Swift:</p><pre>apt update &amp;&amp; apt-get install \<br>          binutils \<br>          git \<br>          gnupg2 \<br>          libc6-dev \<br>          libcurl4-openssl-dev \<br>          libedit2 \<br>          libgcc-9-dev \<br>          libpython3.8 \<br>          libsqlite3-0 \<br>          libstdc++-9-dev \<br>          libxml2-dev \<br>          libz3-dev \<br>          pkg-config \<br>          tzdata \<br>          unzip \<br>          zlib1g-dev \<br>          wget</pre><blockquote>This will download git as well 😄</blockquote><p>Go to <a href="https://www.swift.org/download/">https://www.swift.org/download/</a> and download the swift based on your linux architecture (mine is aarch64 on ubuntu 22.04).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*hIp7sls9pXgZW1bxbxuXVQ@2x.png" /><figcaption>You will get the link to use in wget from here!</figcaption></figure><pre>wget https://download.swift.org/swift-5.7.2-release/ubuntu2204-aarch64/swift-5.7.2-RELEASE/swift-5.7.2-RELEASE-ubuntu22.04-aarch64.tar.gz</pre><p>And then install it.</p><pre>tar -xvf swift-5.7.2-RELEASE-ubuntu22.04-aarch64.tar.gz<br>mv swift-5.7.2-RELEASE-ubuntu22.04 /opt/swift<br>echo &quot;export PATH=/opt/swift/usr/bin:$PATH&quot; &gt;&gt; ~/.bashrc<br>source ~/.bashrc</pre><h4>Happy linux coding 🎉</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*5B3AYGzySQYzdLIAXUZ3EQ@2x.png" /></figure><p>Remember swift is a general-purpose language and not running only on MacOS. Nevertheless, some features may not be available.</p><p>If you liked what you read please leave a 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a489831a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who else Wants to Improve iOS Codebase Quality]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/codex/who-else-wants-to-improve-ios-codebase-quality-3f7c77a2dd10?source=rss-d5f4132680a4------2"><img src="https://cdn-images-1.medium.com/max/1920/1*_S3g73hbHDkF88mRiFs9mg.jpeg" width="1920"></a></p><p class="medium-feed-snippet">Make your codebase a better version of itself</p><p class="medium-feed-link"><a href="https://medium.com/codex/who-else-wants-to-improve-ios-codebase-quality-3f7c77a2dd10?source=rss-d5f4132680a4------2">Continue reading on CodeX »</a></p></div>]]></description>
            <link>https://medium.com/codex/who-else-wants-to-improve-ios-codebase-quality-3f7c77a2dd10?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f7c77a2dd10</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 08:01:14 GMT</pubDate>
            <atom:updated>2022-07-07T15:40:47.897Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Simplest way to add CI to iOS project]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devgenius.io/simplest-way-to-add-ci-to-ios-project-36f345ae3cb2?source=rss-d5f4132680a4------2"><img src="https://cdn-images-1.medium.com/max/636/1*T35tW3DWaUeTPcvhPxd8jg.png" width="636"></a></p><p class="medium-feed-snippet">By leveraging the power of Github Actions</p><p class="medium-feed-link"><a href="https://blog.devgenius.io/simplest-way-to-add-ci-to-ios-project-36f345ae3cb2?source=rss-d5f4132680a4------2">Continue reading on Dev Genius »</a></p></div>]]></description>
            <link>https://blog.devgenius.io/simplest-way-to-add-ci-to-ios-project-36f345ae3cb2?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/36f345ae3cb2</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ci]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 09:54:42 GMT</pubDate>
            <atom:updated>2022-01-19T09:54:42.855Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Automate iOS Development with Keyboard Maestro.]]></title>
            <link>https://kwnstantinosnikoloutsos.medium.com/boost-your-productivity-with-keyboard-maestro-on-ios-development-and-more-d009920e17fa?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d009920e17fa</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 09:27:59 GMT</pubDate>
            <atom:updated>2022-01-17T10:02:47.371Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automate iOS Development with Keyboard Maestro</h3><h4>Examples with XCode and iOS automation to skyrocket productivity</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*IrixDJfB-b0ZxGibDI_d4g.png" /></figure><p>Do you want to achieve more by spending less time?<br>If yes, automation may be the key to what you are looking for</p><p><strong>Keyboard Maestro</strong> is the leading software for macOS automation.<br>Not only will it save you time but it will make you feel so powerful (hackerman).</p><p><a href="https://www.keyboardmaestro.com/main/">Keyboard Maestro 11.0.2: Work Faster with Macros for macOS</a></p><h4> My favorite automations:</h4><blockquote>If one picture worth 1 million words then a gif worth 1 trillion 🔥</blockquote><p>Let’s jump straight to the most useful automation I regularly use 👀👇<br>Ready, set, automate 🏁</p><h4>1. Open your most-used pages faster</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxVGwHf3r_fo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxVGwHf3r_fo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxVGwHf3r_fo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e58ca41d86726eb1c28f48e37f489295/href">https://medium.com/media/e58ca41d86726eb1c28f48e37f489295/href</a></iframe><p>Write anywhere//vfgit ➤ Open work Github Pull Requests<br>Write anywhere//vfjira ➤ Open work Jira</p><blockquote>🙈 Instead of: Open safari ⫸ Open bookmarks ⫸ Find &amp; click</blockquote><p>I love this one because from from XCode i can write this and open Jira or Github 📈.</p><p>🔴 From 6 <em>seconds → 2 seconds</em></p><h4>2. Speed up login in simulator.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIIhYFcJBuHQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIIhYFcJBuHQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIIhYFcJBuHQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce662e18f9cce62c7d84cca376220835/href">https://medium.com/media/ce662e18f9cce62c7d84cca376220835/href</a></iframe><p>Depending on the feature I’m building I want to login with different accounts. This automation is like a lastpass/1password for simulator, it fills in username and password you want.</p><blockquote>🙈 Instead of: Finding the username password ⫸ Copy username and paste ⫸ copy password and paste ⫸ Press login button</blockquote><blockquote>💡Instead of login you can automate a payment journey or whatever you want</blockquote><p>🔴 From 9 seconds <em>→</em> 3 seconds <em>✅</em></p><h4>3. Faster transitions between XCode and Pull Request</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F10hkaUE0B04%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D10hkaUE0B04&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9ca9bb0624f163fcad50b15909c4296/href">https://medium.com/media/d9ca9bb0624f163fcad50b15909c4296/href</a></iframe><p>I use this automation especially for PR suggestions to find and jump into the file that I have to refactor. I copy the code from the PR and I just press a button F15.</p><blockquote>🙈 Instead of: Focus XCode ⫸ ⌘ + ⇧ + F ⫸ Replace text ⫸ Press Enter</blockquote><p>🔴 From 3<em>seconds → 1seconds ✅</em></p><h4>4. Open deeplink in simulator faster than ever before.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FM-6F9QCNK54%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM-6F9QCNK54&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FM-6F9QCNK54%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b517a3c60f617b6fbcfc924c20c3cc89/href">https://medium.com/media/b517a3c60f617b6fbcfc924c20c3cc89/href</a></iframe><p>Just copy the url and press F13 on simulator. Under the hood a terminal script will run and simulator will open your deeplink 🔥<br>🔴 From 10+ seconds <em>→</em> 1 second <em>✅</em></p><h4>5. Enable my VPN with 1 click</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMoRU_xtqvyc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMoRU_xtqvyc&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b34e8f54dc6b289f19947a0a635112a0/href">https://medium.com/media/b34e8f54dc6b289f19947a0a635112a0/href</a></iframe><p>In my work some services work only with the VPN. Instead of activating it manually I have an automation that does this for me.</p><blockquote>🙈 Instead of: Open and wait cisco VPN ⫸ Type my password ⫸ Press and wait for 2 ok buttons</blockquote><p>🔴 From 7 seconds -&gt; 2 seconds <em>✅</em></p><h4>6. Read unlimited premium medium posts for free</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfisyES5YeyY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfisyES5YeyY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfisyES5YeyY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/48b827a62cb9da73d9a55385a174d413/href">https://medium.com/media/48b827a62cb9da73d9a55385a174d413/href</a></iframe><p>Especially useful if you do not have a premium account because it gives you the ability to read the article. By pressing F13, the automation copies the current locked article URL you’re watching and then it opens incognito with it.</p><p>🔴 From 3 seconds <em>→</em> 1 second <em>✅</em></p><h4>7. Enable/Disable DND when on a meeting/presenting.</h4><p>This one is one of my favorites as I easily get distracted by notifications. It auto-enables/disables Do not Disturb mode when you use teams/zoom or something else.</p><p>If you want to see a demo of this see the 1st tutorial listed here.</p><blockquote>🙈 Most of the times we forget to enable DND on every meeting we have.</blockquote><p>🔴 From 2 seconds + cognitive effort <em>→</em> 0 second <em>✅</em></p><h4>8. Paste current date format 📆</h4><p>In my work when we create a new ticket we have to write the current date. Intead of writing myself I write//datenow and it converts it into 16/01/2022 or whatever you want to .</p><blockquote>🙈 Instead of: Remember what day it is ⫸ Write it down</blockquote><p>🔴 From 3 seconds <em>→</em> 0.5 seconds <em>✅</em></p><h4>9. Remove style from copied text</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*8lWcaAUIGgIgVZQsjVM_Cw.png" /></figure><p>Really useful when creating presentations and you copy a text from a website.<br>This is a default automation in keyboard maestro 😄</p><blockquote>🙈 Instead of: Remember what day it is ⫸ Write it down</blockquote><p>🔴 From 3 seconds <em>→</em> 0.5 seconds <em>✅</em></p><h4>10 . 🚀🚀 The winner: Zapier + keyboard maestro</h4><p>Last but not least Zapier + keyboard maestro work perfectly fine together.<br>If you know Zapier you already know how powerful automations you can make. Combine it with keyboard maestro and you are an automation king 👑</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m4UZ-ni0KV3rhGuGrPfdhg.png" /></figure><p>Now a keyboard of your computer triggers a zapier task.<br>If that’s not exciting then what is.</p><blockquote>😂 Please use with caution. Do not launch any rocket by pressing a button.</blockquote><p>At this point I believe you are pretty conviced that keyboard maestro can save your time. I’m sure you will have more and different ideas than I have. So you shouldn’t stop here. See how you can create your own automations.🎉</p><h4>How to create my own automations ♻️:</h4><p>Keyboard maestro comes with an easily understandable UI and users can create their automations simply by adding block of actions and triggers.</p><p>I suggest you take a look at the following tutorials which helped me understand how to create my own automations.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FoqIIMwe6YmU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DoqIIMwe6YmU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FoqIIMwe6YmU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f04b22a1db13bf8d1e53c5a56be15e5f/href">https://medium.com/media/f04b22a1db13bf8d1e53c5a56be15e5f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGr5FwmACd1M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGr5FwmACd1M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGr5FwmACd1M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/80c20a0e529c748e8ad9c281a31c16ca/href">https://medium.com/media/80c20a0e529c748e8ad9c281a31c16ca/href</a></iframe><blockquote>Remember keyboard maestro is really flexible 🎉</blockquote><h4>What to do now 👏:</h4><p>Everyone at some time of his carreer has the need for automating everyday tasks, so do you!</p><p>This was just a one tool about automation. If you are a automation nerd like me I suggest you take a look at the following.</p><ul><li><a href="https://fastlane.tools/">fastlane - App automation done right</a></li><li><a href="https://github.com/danger/danger">GitHub - danger/danger: 🚫 Stop saying &quot;you forgot to ...&quot; in code review (in Ruby)</a></li><li><a href="https://github.com/realm/SwiftLint">GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions.</a></li><li><a href="https://github.com/IBDecodable/IBLinter">GitHub - IBDecodable/IBLinter: A linter tool for Interface Builder</a></li><li><a href="https://zapier.com/">Zapier: Automate AI Workflows, Agents, and Apps</a></li><li><a href="https://www.integromat.com/en">Integromat</a></li></ul><blockquote>Automation Is a Mindset, Not Just a Tool — Zapier</blockquote><p>If you liked what you read please leave a 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d009920e17fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS library support both Cocoapods and Swift Package Manager]]></title>
            <link>https://blog.devgenius.io/ios-library-support-both-cocoapods-and-swift-package-manager-983c81b35080?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/983c81b35080</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[cocoapods]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Sat, 08 Jan 2022 21:00:39 GMT</pubDate>
            <atom:updated>2022-01-08T21:00:39.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*inPWoPOH82PnlrpI5A_DJw.png" /></figure><p>Cocoapods and SwiftPM are some of the most popular package managers.<br>By supporting both in your open-source library, you potentially increase the developers who will use it.</p><p>🚨Remember the most important thing all package managers want to know is <strong>where are the source files </strong>in order to distribute them. Each package manager has its own way of configuring that.</p><p>So let’s jump straight to some practical examples in order to understand how to support both. For this, we will use as an example a recent open-source library I built called FancyGradient.</p><p><a href="https://github.com/Nikoloutsos/fancyGradient">GitHub - Nikoloutsos/fancyGradient: Powerful animated gradientView in swift 🌈</a></p><p><strong>Swift Package Manager 🔥</strong></p><p>The configuration happens on a file named Package.swift (aka manifest).<br>This is the file we need to edit to let SPM know what files to include.</p><blockquote>Note: Every SPM library must contain a manifest file called <strong>Package.swift</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*ogpbBFds_RCyjPKzRFQJVQ.png" /><figcaption>EPackage.swift in folder</figcaption></figure><p>By default SPM anticipate the developer to put:</p><ul><li>His source code into → Sources &gt;&gt; {{target Name}}folder 📁</li><li>His tests (XCTests) → Sources &gt;&gt; {{testTarget Name} folder 📁</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvvXEElVLyi_Nhaabb_4ow.png" /><figcaption>Red-underline shows the <strong>target</strong> and <strong>testTarget</strong> names.</figcaption></figure><blockquote>Note: If I change the folder nameSources &gt;&gt; FancyGradient into something else the library will not be able to compile. Of course because SPM doesn’t know how to find the files 🚨</blockquote><p>But what if you wanted a different structure or different folder names? Don’t worry developer’s of SPM got your back 💪</p><p>For changing the default behavior of SPM you need to tamper with the Package.swift manifest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Awx3Ct2d_tG0KR7VYDCa1w.png" /><figcaption>We changed default directory into Foo</figcaption></figure><p>path the parameter in target gives you the ability to change the path that SPM will try to look for finding your files. (in that case the source code). 👀</p><p>So now we know how SPM locates our files for sharing the library with other developers. ✅</p><blockquote>Note: After pushing this to github remember to add a tag-version of your library and push it. So that when someone uses your library, he will know the version he has or decide what version to get.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*UlT2ujE-Q2QqugILfN19Rw.png" /><figcaption>Versions of FancyGradient</figcaption></figure><p><strong>Cocoapods 🔥</strong></p><p>Cocoapods has a configuration file called {{LibraryName}}.podspec</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCfotNA8HcP8jhjNFfirXA.png" /><figcaption>FancyGradient.podspec</figcaption></figure><p>The red-underlined line lets Cocoapods know where to search for the source code. We can of course change the name of the folder structure as we did in SPM manifest.</p><blockquote>Note: Sources/FancyGradient/**/*.{h,m,swift} will include all .h .m .swift files in the shipped library.</blockquote><p><strong>Cocoapods + SPM 🚀</strong></p><p>So now that we already know how each package manager configuration works, we can support both. ✅</p><p>If you already support Cocoapods but not SPM you can follow the following steps. 👇</p><ol><li>Create a new empty SPM package</li><li>(optional) Rename the folder structure (just we saw above)</li><li>Copy source code files from your current library into sources &gt;&gt; {{Library Name }}. Do the same for tests (If you just creating your library don’t copy something 😄)</li><li>With the current structure add cocoa pods (If you already have don’t worry)</li><li>Alter cocoa pods source_files in .podspec files (to let it know the path to search for the source code)</li><li>Add and push a new tag version of your library to Github.</li><li>Publish Cocoapods(you’ll use the command line for that) and push everything to GitHub</li></ol><p>Now your library supports both cocoa pods and SPM.</p><blockquote>Note: In case you forget or have any doubht on how to do this just open another github library that supports both package managers and see how it is doing that. You don’t have to reinvent the wheel 👀</blockquote><h4>Extra lovely tip for those who come down here ❤️</h4><p>For those coming to the end here is a useful tip learned from <strong>pointfreeco</strong>.<br>Suppose you want to add a demo project inside your library, you will get this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*ZR1enlxwFZw-CauUmJbylw.png" /><figcaption>Demo folder doesn’t look nice in</figcaption></figure><p>You can get rid of the Demo folder inside the package by manually creating an empty file Package.swift inside the Demo ⭐️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*aMbCVWrweHuieUxi-6VBww.png" /><figcaption>Add empty Package.swift in demo</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*zsOBfOZ51bLkCEIAOdIgxw.png" /><figcaption>A demo is ignored by SPM.</figcaption></figure><p>So again if you don&#39;t want the docs folder just add an empty manifest inside it and kaboom 🎉.</p><h4>Extra resources:</h4><ul><li><a href="https://www.raywenderlich.com/7242045-swift-package-manager-for-ios">Swift Package Manager for iOS</a></li><li><a href="https://medium.com/@jeantimex/create-your-own-cocoapods-library-da589d5cd270">Create your own CocoaPods library</a></li></ul><p>If you liked you learned don’t forget to leave a 👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=983c81b35080" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/ios-library-support-both-cocoapods-and-swift-package-manager-983c81b35080">iOS library support both Cocoapods and Swift Package Manager</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animated Gradient in iOS]]></title>
            <link>https://blog.devgenius.io/animated-gradient-in-ios-d480f07490d5?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d480f07490d5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Sat, 01 Jan 2022 12:00:23 GMT</pubDate>
            <atom:updated>2022-01-01T12:00:23.889Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*vmcLECZz2UsmxHpRWgAFmQ.png" /><figcaption>Special thanks to Maria Saoulou ❤️ for the logo</figcaption></figure><p>Who doesn’t love gradients especially when they are animated. <br>In this article we will see a new library called FancyGradient and how you can use it in your project 🌈</p><blockquote>According to studies beautiful animations increase User Experience 🚀</blockquote><h4>Demo 👇 :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*aNsTLHxtK26Wa1K37g3JYw.gif" /><figcaption>Examples</figcaption></figure><h4>Installation:</h4><p>In order to use the FancyGradient you somehow need to add the library in your project. But don’t worry package managers will help you out.</p><ul><li><strong>Cocoapods <br></strong>To install FancyGradient using Cocoapods, simply add the following line to your Podfile and after that in your terminal run pod install .</li></ul><pre>pod &quot;FancyGradient&quot;</pre><ul><li><strong>Swift Package Manager</strong></li></ul><p>Swift Package Manager is a dependency manager built right into Xcode (So you already have this). From the File menu, add a new Swift Package dependency to your project and paste in this project’s Git URL.</p><pre><a href="https://github.com/Nikoloutsos/fancyGradient">https://github.com/Nikoloutsos/fancyGradient</a></pre><p><a href="https://github.com/Nikoloutsos/fancyGradient">GitHub - Nikoloutsos/fancyGradient: Powerful animated gradientView in swift 🌈</a></p><h4>Make your animation 🌈:</h4><p>FancyGradient library has a simple, easy-to-use and documented API for creating your animations 🎉<br>Let’s see how we can create our animation. 👀</p><p>Let’s start by creating an animation where:</p><ol><li>we change the color first (to red, orange) for 3 seconds</li><li>and then the direction angle to ( ⬆️ up) for 1 second</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8c28fcc19e142410b2b05fe5ed0e6e3/href">https://medium.com/media/f8c28fcc19e142410b2b05fe5ed0e6e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*S74ImnvqAG92TDlMQ1XsMw.gif" /></figure><p>Remember the gradient properties you can animate are:</p><ul><li><strong>Colors</strong></li><li><strong>Angle/Direction</strong> (e.g 90°)</li><li><strong>Color stops</strong> ( When you want one color to occupy more space than other)</li></ul><blockquote>Tip: Provide an implementation of FancyGradientViewDelegate to inform you when animation finished. Useful for showing</blockquote><h4>I’m sure you can do more than this 🔱:</h4><p>I’m sure you want to create even more complex and beautiful animations. I believe you can do it ⭐️.</p><p>I suggest you clone the project and run the demo which contains many examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*3vFT8bBNGkBKNj0BM0H_Fg.png" /></figure><p><em>FancyGradient can be found open-sourced on </em><a href="https://github.com/Nikoloutsos/fancyGradient"><em>Github</em></a><em> under MIT license.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d480f07490d5" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/animated-gradient-in-ios-d480f07490d5">Animated Gradient in iOS</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be careful! Trojan horse in iOS codebase]]></title>
            <link>https://blog.devgenius.io/be-careful-trojan-horse-in-ios-codebase-75ba3662f8a2?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/75ba3662f8a2</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Sat, 18 Dec 2021 16:43:30 GMT</pubDate>
            <atom:updated>2021-12-20T13:17:35.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrUX5l_WQdBXP2jKWA33xg.jpeg" /></figure><p>Although, we developers create beautiful UI and always striving for improving the customers UX, we need to understand and eliminate some security issues.<br>In this article we will see a security issue called <strong>trojan horse.</strong></p><h4>See the problem ⚠️</h4><p>As we all know, every character corresponds to a certain unicode. But did you know there are some special characters out there.</p><pre><strong>func</strong> test() {</pre><pre><strong>    let</strong> accessLevel = &quot;user&quot;</pre><pre><strong>    if</strong> accessLevel != &quot;user⁦// check if admin⁩⁦&quot; {</pre><pre>        print(&quot;You&#39;re an admin&quot;)</pre><pre>    }</pre><pre>}</pre><pre>test()</pre><p>This code at first looks like it will output “You’re an admin”? But try copy-paste it into XCode and see how it looks like. Here is the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*U2-CoFQtjwsBW4sYQNwcwQ.png" /><figcaption>Not joking</figcaption></figure><p>Wait a second..😱 that was my first reaction. Now looks like it will not have any output.</p><p>Every developer out here would say that the output would be nothing as the predicate in the if statement equals false.</p><p>Guess what the output is:</p><pre>You&#39;re an admin</pre><p>So someone may change the flow of your application. What if you developed a software for autonomous car and inside the codebase there was something like this. Then the driver would hit the break and the car would accelerate ‼️</p><blockquote>This wouldn’t happen cause of unit-testing but you still got my point!</blockquote><h4>Solution ✅</h4><p>Don’t worry, there is a solution. Idea’s solution is simple. <br><strong>Don’t let those special characters in codebase .</strong></p><p>This can be done by using <a href="https://github.com/realm/SwiftLint">Swiftlint</a> and adding a custom lint rule.</p><p>The rule you need to add is the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*6NdcF1JwAa7xTrEtXR3hdg.png" /><figcaption>Custom rule that catches those special characters</figcaption></figure><blockquote>As suggested by macdrevx in this <a href="https://github.com/realm/SwiftLint/issues/3751">Pull request</a></blockquote><p>In case you want to learn what swiftLint is I recommend you read this 👇</p><p><a href="https://blog.devgenius.io/enforce-swift-style-and-conventions-for-ios-7f5047837e82">Enforce Swift Style and Conventions for iOS</a></p><p>If you learned something from this article don’t forget to follow<strong> </strong>and 👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75ba3662f8a2" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/be-careful-trojan-horse-in-ios-codebase-75ba3662f8a2">Be careful! Trojan horse in iOS codebase</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoid nib and storyboards in iOS]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devgenius.io/avoid-nib-and-storyboards-in-ios-2b75dc764b26?source=rss-d5f4132680a4------2"><img src="https://cdn-images-1.medium.com/max/2600/1*zHEcEf1HWBxyrErpEY9l_Q.jpeg" width="7001"></a></p><p class="medium-feed-snippet">The Interface Builder editor within Xcode makes it simple to design a full user interface without writing any code. I remember using it a&#x2026;</p><p class="medium-feed-link"><a href="https://blog.devgenius.io/avoid-nib-and-storyboards-in-ios-2b75dc764b26?source=rss-d5f4132680a4------2">Continue reading on Dev Genius »</a></p></div>]]></description>
            <link>https://blog.devgenius.io/avoid-nib-and-storyboards-in-ios-2b75dc764b26?source=rss-d5f4132680a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b75dc764b26</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Konstantinos Nikoloutsos]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 08:19:40 GMT</pubDate>
            <atom:updated>2021-12-16T08:19:40.932Z</atom:updated>
        </item>
    </channel>
</rss>