<?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 Andrei Villasana on Medium]]></title>
        <description><![CDATA[Stories by Andrei Villasana on Medium]]></description>
        <link>https://medium.com/@andreivillasana?source=rss-cfe285b0af15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*GxyQANHGTuYXrKRqGgnFmg.jpeg</url>
            <title>Stories by Andrei Villasana on Medium</title>
            <link>https://medium.com/@andreivillasana?source=rss-cfe285b0af15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 11:24:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreivillasana/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[Announcing the launch of “Send It Climbing”]]></title>
            <link>https://medium.com/@andreivillasana/announcing-the-launch-of-send-it-climbing-5c15fd3bd4a5?source=rss-cfe285b0af15------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c15fd3bd4a5</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[climbing]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Andrei Villasana]]></dc:creator>
            <pubDate>Fri, 13 Dec 2024 01:59:52 GMT</pubDate>
            <atom:updated>2024-12-13T01:59:52.796Z</atom:updated>
            <content:encoded><![CDATA[<h4>I’m excited to finally announce the official launch of “Send It Climbing.”</h4><p>My passion for climbing started back in 2016, when I first visited the Seattle Bouldering Project (Poplar). My relationship with climbing is one about community, health and wellness and personal challenge.</p><p>I was lucky to be introduced to climbing by two great friends who took me to SBP. Afterwards I was hooked in. I liked the sense of challenge and newness that came any time the walls were updated, leading me to push myself and send harder routes.</p><p>I’ve also had the privilege of introducing climbing to many friends who would never dare to do such a sport by themselves. I really like that the overall climbing community is a positive, supportive, inclusive and accessible sport for people of all ages, classes and social groups.</p><p><strong>It’s because of these reasons that I have been grounded in building an app for the climbing community that serves as a space for climbers to share their passion, build connections and explore new gyms around the globe.</strong></p><h4>The app is now available for download through the following links:</h4><ul><li>iOS App Store, <a href="https://apps.apple.com/us/app/send-it-climbing/id6739033439">https://apps.apple.com/us/app/send-it-climbing/id6739033439</a></li><li>Android Google Play Store, to be released soon…</li></ul><h3><strong>A brief overview of the app</strong></h3><p>The app consists of three major features:</p><ul><li><strong>Discover</strong>, a way to explore gyms around the globe and preview a gym’s latest routes</li><li><strong>Community</strong>, a social feed for climbing related content</li><li><strong>My</strong> <strong>Gyms</strong>, bookmark your favorite gyms for quick access</li></ul><h4>Discover — Explore Gyms and Preview Gym Routes</h4><p>The Discover tab is your go to destination to explore new gyms. Whether you are traveling around and interested if there are any climbing gyms in your vicinity you or you are curious if your local gym has updated their routes the Discover tab is the place to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSc0ptQrwSTkyECthe_BQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qiogrkaF42rjoPisCJJAQ.png" /><figcaption>Discover, explore gyms worldwide and preview latest routes</figcaption></figure><h4>Community — A social feed for the climbing community</h4><p>The Community tab is where climbers can share with the climbing community content such as a proud moment sending a route, showcasing their favorite gym, sharing tips, reviewing gear. The bounds are endless, there are no limitations as to what a climber may choose to post*</p><p><em>*granted it doesn’t violate any community guidelines ;)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHX5JmCbi0I5Vnhbd9Mo4A.png" /></figure><h4>My Gyms — Bookmark Gyms for Quick Access</h4><p>The My Gyms tab is at its infancy, but will serve as the foundation for a user to have quick access to their activity and content within the app. Currently this is the ability to see their bookmarked gyms, but over time it will be the center for everything user related, bookmarks, community posts, climbing profile, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pKFVfZT94HHs0ELSOdifJw.png" /><figcaption>Community, a climbers social feed</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c15fd3bd4a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI, Reusable Components/Higher-Order-Components]]></title>
            <link>https://medium.com/better-programming/swiftui-reusable-components-higher-order-components-192c65375c36?source=rss-cfe285b0af15------2</link>
            <guid isPermaLink="false">https://medium.com/p/192c65375c36</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Andrei Villasana]]></dc:creator>
            <pubDate>Sat, 29 Jun 2019 12:19:06 GMT</pubDate>
            <atom:updated>2019-07-29T03:43:43.913Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI: Reusable Components/Higher-Order-Components</h3><h4>How to use and manipulate HOC’s</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_pxyiS7mEwz3ZFc-rAXdA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lastly?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tyler Lastovich</a> on <a href="https://unsplash.com/search/photos/iphone?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><em>**It seems Safari isn’t able to show code snippets, please try using Chrome**</em></p><p>If you’ve ever worked with React or React-Native, Higher-Order-Components are the design pattern of choice when reusing component behavior and UI.</p><p>This pattern isn’t foreign to iOS either. Check out this <a href="https://medium.com/@studymongolian/creating-custom-views-in-ios-for-multiple-reuse-b2307a57d792">article</a> on creating custom components on iOS.</p><h3><strong>SwiftUI’s HOC Syntax — The Right Way</strong></h3><p>Let&#39;s keep it <em>really</em><strong> </strong>simple now. This is all the code that we need in order to create a Higher-Order-Component in SwiftUI:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6a309536d6869213cbea356b6c9bc71/href">https://medium.com/media/e6a309536d6869213cbea356b6c9bc71/href</a></iframe><p><em>Note: In the initializer, I purposely set </em><em>_ childView to conform to a closure type that returns our generic </em><em>View, this makes the code more readable. Alternatively, you can set it as this…</em><em>_ childView: C and call </em><em>ContainerView(Text(&quot;Hello!&quot;))</em></p><h4>Code Breakdown</h4><ol><li>ContainerView declares a <a href="https://docs.swift.org/swift-book/LanguageGuide/Generics.html">generic</a> constraint for our View, a.k.a Type Constraint Syntax</li><li>We store the generic type as a property named childView</li><li>Within body we return the childview</li><li>Simple! HOC successfully created!</li></ol><h3>Practical Example</h3><p>Let’s get serious, we can’t truly appreciate HOC without a good practical example, let&#39;s dig in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*T299peElgwDolFSBo2W7AA.gif" /></figure><h4>Creating a draggable HOC</h4><p>What if we try to create a component that would give every child the ability to become draggable and spring back to their original position when released.</p><p>First, we need to create a new View component that we will name DraggableView<strong> </strong>that adopts the HOC Syntax we wrote earlier.</p><p>Second, we have to write the business logic for the drag gesture and spring animation.</p><p>We can put DraggableView into action by passing in the child components for rendering!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d2e8790e4928eefb79694d44fc5b0a7/href">https://medium.com/media/8d2e8790e4928eefb79694d44fc5b0a7/href</a></iframe><h3>Final Thoughts!</h3><p>Voila! Just like that, we are done! I wasn&#39;t able to find any articles on creating HOC’s for SwiftUI, but I hope you enjoyed reading this article as much as I enjoyed writing it!</p><p>I’d also recommend checking this <a href="https://www.hackingwithswift.com/quick-start/swiftui/how-to-create-custom-modifiers">article</a> on creating your own custom view modifiers, just like their name they modify your View.</p><p>Let me know your thoughts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=192c65375c36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/swiftui-reusable-components-higher-order-components-192c65375c36">SwiftUI, Reusable Components/Higher-Order-Components</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>