<?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 Shardul Patel on Medium]]></title>
        <description><![CDATA[Stories by Shardul Patel on Medium]]></description>
        <link>https://medium.com/@shardul18?source=rss-35d059aaab7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tOgJrluiUr6YyJrMYyyVig.jpeg</url>
            <title>Stories by Shardul Patel on Medium</title>
            <link>https://medium.com/@shardul18?source=rss-35d059aaab7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:25:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shardul18/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[How We Open Sourced Our First iOS Project]]></title>
            <link>https://medium.com/crowdfire-tech/how-we-open-sourced-our-first-ios-project-133772c430c0?source=rss-35d059aaab7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/133772c430c0</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Shardul Patel]]></dc:creator>
            <pubDate>Wed, 22 Jun 2016 12:46:53 GMT</pubDate>
            <atom:updated>2016-06-22T14:58:03.599Z</atom:updated>
            <content:encoded><![CDATA[<p>It happened while we were redesigning the iOS version of Crowdfire and facing a lot of design constraints with the default UIAlertController. We realised that the system’s default alerts and action sheets didn’t go with our app design theme, and offered no flexibility to modify its UI. We needed our own theme-styled alerts and action sheets and our talented design team were already ready with some really good alerts and action sheets designs. All we needed to write code. From scratch<em>.</em></p><p>We launched a basic version of CFAlertViewController to enhance our alert and action sheet functionality as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S03scVU-iKbXuGOt5z8z5Q.png" /><figcaption>Alerts and Action sheet styles</figcaption></figure><p>Here’s the code snippet to help you create a basic alert view as shown in the top left image.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/392290d89a11b8f1a00443927089b13a/href">https://medium.com/media/392290d89a11b8f1a00443927089b13a/href</a></iframe><p>Later in the product development stage, our design team came up with an idea to display image or gifs as header in an alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWKTw3b21QTjJ2EXnQIIyA.png" /><figcaption>Dollar image view used as header in the alert</figcaption></figure><p>Earlier, we would ask our free users to upgrade to a paid plan when they hit their daily limit. Our marketing team came up with a plan to give the free users the option to either upgrade to a higher plan or tweet something to increase the daily limits at the same time. The design team came up with the following pop-up design:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZH_devnDqY5eXUHSGsz6CQ.png" /><figcaption>The “OR” section view in the footer of the alert</figcaption></figure><p>However, as per the UI requirement, we needed to modify the control in a way that it would retain the existing alert properties and be able to handle and display different UI modules in top and bottom of the alert. We also had to make it scalable so that it would be able to fulfil different UI requirements in the future.</p><p>We were sure that there would be teams or individuals having similar requirements too, and hence, we decided that building a generic solution to the problem would make more sense. What we had in mind was a control that would not only retain the alerts and action sheet requirement functionality but also offer additional functionality to add header or footer view which is a subclass of UIView (e.g., UIImageView or your custom view).</p><p>We built CFAlertViewController and open-sourced it. We have designed its API in a way that it is similar to the system’s existing UIAlertController class structure and is modifiable, extendable, and offers new functionality. It comes with the following features:</p><ul><li>You can adjust the alignment of the title and subtitle of any alert. You can also align actions as per your requirement.</li><li>It functions on both iPhone and iPad. It offers adaptive UI and screen rotation support.</li><li>It supports header and footer view in an alert. In fact, it comes with numerous configurations and possibilities so that you can even create a custom alert out if it. You can even pass your custom header or footer view and ignore all the basic alert or action sheet functionalities. This way, your own view can behave like an alert or action sheet and automatically get features like rotation, keyboard support and adaptive layout functionality without ever writing a single line of code!</li></ul><p>You can have a look at the demo project and open source code on <a href="http://bit.ly/cfAlertVC"><strong>Github</strong></a>.</p><p>If you found the post helpful, please recommend and share. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=133772c430c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowdfire-tech/how-we-open-sourced-our-first-ios-project-133772c430c0">How We Open Sourced Our First iOS Project</a> was originally published in <a href="https://medium.com/crowdfire-tech">Coding Big — The Crowdfire Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>