<?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 Cristian Palomino on Medium]]></title>
        <description><![CDATA[Stories by Cristian Palomino on Medium]]></description>
        <link>https://medium.com/@cristianpalomino?source=rss-e799d1208c1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*c-Ji0Y8QKFF8aVHKSM6-cQ.png</url>
            <title>Stories by Cristian Palomino on Medium</title>
            <link>https://medium.com/@cristianpalomino?source=rss-e799d1208c1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:58:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cristianpalomino/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[SwiftUI Pills #1  —  HStack]]></title>
            <link>https://medium.com/@cristianpalomino/swiftui-pills-1-hstack-afa31c29ea74?source=rss-e799d1208c1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/afa31c29ea74</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Cristian Palomino]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 23:42:06 GMT</pubDate>
            <atom:updated>2024-02-07T23:42:06.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI Pills #1 — HStack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwDwo_bpxVsdNex3TUV5Cw.jpeg" /><figcaption>SwiftUI Pills</figcaption></figure><h4>Unlock the power of horizontal layouts in SwiftUI and how it revolutionizes UI development compared to UIKit.</h4><blockquote>Hi all ! I am creating this SwiftUI Pills series to reinforce my learning about SwiftUI the new Apple UI framework which bit a bit is gaining space and relevance in the Apple Development Ecosystem. I am starting from zero, and I want to be a hero in this UI Framework.</blockquote><blockquote>An extra consideration I ask you its that I also want to improve my English skills. I am a native Spanish speaker, and I will try to do my best for you to understand me.</blockquote><h3>Introduction</h3><p>One of the most important components in SwiftUI are The Stacks, we have three types of stacks, they are HStack, VStack and ZStack.</p><p>HStack component arranges its children in a horizontally line, similar to UIStackView in UIKit but with a simpler and more intuitive syntax.</p><h3>Code</h3><pre>HStack {<br>    Image(systemName: &quot;swift&quot;)<br>    Text(&quot;SwiftUI&quot;)<br>    Button(&quot;Click Me&quot;) {}<br>}<br><br>...<br><br>HStack(alignment: .bottom) {<br>    Image(systemName: &quot;swift&quot;)<br>    Text(&quot;SwiftUI&quot;)<br>    Button(&quot;Click Me&quot;) {}<br>}<br><br>...<br><br>HStack(alignment: .bottom, spacing: 12) {<br>    Image(systemName: &quot;swift&quot;)<br>    Text(&quot;SwiftUI&quot;)<br>    Button(&quot;Click Me&quot;) {}<br>}</pre><p>We have a simplest way to create a HStack and adds its subviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RCTAny6q3q1eGvR5k67vQ.png" /></figure><h3>More</h3><p>About its constructor, we have some important things to share. First lets check the initialization signature.</p><pre>init(<br>    alignment: VerticalAlignment = .center,<br>    spacing: CGFloat? = nil,<br>    @ViewBuilder content: () -&gt; Content<br>)</pre><p>As we can see above, its initialization signature allows us to modify the default value of its subviews alignment.</p><pre>/**<br>- .top: A guide that marks the top edge of the view.<br>- .center: A guide that marks the vertical center of the view.<br>- .bottom: A guide that marks the bottom edge of the view.<br>- .firstTextBaseline: A guide that marks the top-most text baseline in a view.<br>- .lastTextBaseline: A guide that marks the bottom-most text baseline in a view.<br>**/<br>alignment: VerticalAlignment = .center</pre><figure><img alt="Apple VerticalAlignment documentation." src="https://cdn-images-1.medium.com/max/778/1*bUwHQ6_JC4ZyNQfBc-4Mow.png" /><figcaption>Apple VerticalAlignment documentation.</figcaption></figure><p>Also we can provide a spacing value between its subviews. Take in consideration that the default value its nil , it means that the HStack will choose a default distance for its subviews.</p><pre>// Any CGFloat values<br>spacing: CGFloat? = nil</pre><h3>See also</h3><ul><li><a href="https://developer.apple.com/documentation/swiftui/building-layouts-with-stack-views">Building layouts with stack views | Apple Developer Documentation</a></li><li><a href="https://developer.apple.com/documentation/swiftui/hstack">HStack | Apple Developer Documentation</a></li><li><a href="https://developer.apple.com/documentation/swiftui/verticalalignment">VerticalAlignment | Apple Developer Documentation</a></li></ul><p>Thanks for reading … 🫶 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afa31c29ea74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UIKit vs SwiftUI: Why Both Approaches Remain Important in the Apple App World]]></title>
            <link>https://medium.com/@cristianpalomino/uikit-vs-swiftui-why-both-approaches-remain-important-in-the-apple-app-world-77319559bc17?source=rss-e799d1208c1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/77319559bc17</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Cristian Palomino]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 05:09:39 GMT</pubDate>
            <atom:updated>2023-03-21T05:09:39.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hqwLUsnVjS_i2-cGHt1m4g.png" /><figcaption>Image generated by Midjourney</figcaption></figure><p>When creating applications for Apple devices, developers look for tools and technologies that allow them to build high-quality products efficiently. With the emergence of SwiftUI in 2019, Apple introduced us to an innovative and straightforward way to design user interfaces. Despite the advantages that SwiftUI offers, UIKit, the classic approach, remains valuable for Apple app developers. In this post, we will analyze why both approaches remain relevant and how to choose the most suitable one for your projects.</p><p>Compatibility with older devices: When choosing a tool to design user interfaces, it’s essential to consider whether it will work on older devices. SwiftUI requires a relatively recent operating system (iOS 13 or later), limiting its use on older devices. On the other hand, UIKit works on older versions of iOS, allowing applications to reach more users.</p><p>Experience and solidity: UIKit has been the main tool for creating Apple applications since 2007, and as a result, it has been tested and improved over the years. Although SwiftUI is promising and constantly evolving, it is still relatively new and may present problems in certain cases. For large or complex projects, the solidity and experience of UIKit can be crucial.</p><p>Variety of options and features: UIKit offers a wide range of options and features not available or not yet fully developed in SwiftUI. This allows developers to take full advantage of the capabilities of Apple devices and create more powerful and customized applications.</p><p>Resources and community support: Due to its longevity, UIKit has a wealth of resources and solid community support. Although SwiftUI is rapidly gaining popularity, UIKit still offers a wider community, with an abundance of tutorials, additional libraries, and discussion forums.</p><p>Conclusions</p><p>While SwiftUI is undoubtedly an exciting and rapidly evolving technology, we should not underestimate the value and importance of UIKit in the world of Apple applications. By evaluating the specific needs of your project, such as compatibility with older devices, the solidity of the tool, and the required features, you can make an informed decision about which approach is most suitable for you.</p><p>If you’re interested in learning more about UIKit and SwiftUI, feel free to connect with me or follow me for updates and additional resources in the future.</p><p>Good luck on your Apple app development journey and happy designing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77319559bc17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to delete Carthage and Swift Package Manager (SPM) cache.]]></title>
            <link>https://medium.com/@cristianpalomino/how-to-delete-carthage-and-swift-package-manager-spm-cache-6d674ba77dc3?source=rss-e799d1208c1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d674ba77dc3</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Cristian Palomino]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 05:09:13 GMT</pubDate>
            <atom:updated>2022-12-14T05:09:13.796Z</atom:updated>
            <content:encoded><![CDATA[<p>To delete the cache for Carthage and Swift Package Manager, you can use the following steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*sTX5y3eGiyzr6UnzaQ9ijg.png" /></figure><p>1. Open a Terminal window.</p><p>2. To delete the Carthage cache, run the following command:</p><pre>rm -rf $HOME/Library/Caches/org.carthage.CarthageKit/</pre><p>3. To delete the Swift Package Manager cache, run the following command:</p><pre>rm -rf $HOME/.swiftpm/xcode/</pre><p>4. To delete the Carthage and Swift Package Manager caches for a specific project, navigate to the project directory in the Terminal and run the following commands:</p><pre>rm -rf Carthage<br>rm -rf .build</pre><p>Note: These commands will delete the Carthage and Swift Package Manager caches for your current user only. If you want to delete the caches for all users on your system, you will need to run the commands as an administrator.</p><p>To create a script that can easily delete the Carthage and Swift Package Manager caches, you can follow these steps:</p><p>1. Open a text editor, such as TextEdit or Notepad, and create a new file.</p><p>2. In the file, add the following lines of code:</p><pre>#!/bin/bash<br><br>rm -rf $HOME/Library/Caches/org.carthage.CarthageKit/<br>rm -rf $HOME/.swiftpm/xcode/</pre><p>3. Save the file with a name such as “clear-cache.sh”.</p><p>4. Open a Terminal window and navigate to the directory where you saved the script.</p><p>5. To make the script executable, run the following command:</p><pre>chmod +x clear-cache.sh</pre><p>6. To run the script, use the following command:</p><pre>./clear-cache.sh</pre><p>If you want to delete the caches for a specific project, you can modify the script to include the following lines of code:</p><pre>cd /path/to/project<br>rm -rf Carthage<br>rm -rf .build</pre><p>This will navigate to the project directory and delete the Carthage and Swift Package Manager caches for that project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d674ba77dc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>