<?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[Ajay Bhanushali - Medium]]></title>
        <description><![CDATA[iOS/AR Developer. - Medium]]></description>
        <link>https://medium.com/ajay-bhanushali?source=rss----e50ebaa3f776---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Ajay Bhanushali - Medium</title>
            <link>https://medium.com/ajay-bhanushali?source=rss----e50ebaa3f776---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:15:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ajay-bhanushali" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[iOS: Create GaugeView/Speedometer in Swift 4 using ABGaugeViewKit]]></title>
            <link>https://medium.com/ajay-bhanushali/create-gaugeview-speedometer-in-swift-571ff97d1a68?source=rss----e50ebaa3f776---4</link>
            <guid isPermaLink="false">https://medium.com/p/571ff97d1a68</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[gaugeview]]></category>
            <category><![CDATA[abgaugeview]]></category>
            <category><![CDATA[abgaugeviewkit]]></category>
            <category><![CDATA[speedometer]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sat, 10 Mar 2018 16:10:06 GMT</pubDate>
            <atom:updated>2018-07-20T15:00:41.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*d1lZIMOUyLcgV6yoLrX1uA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*xG9KewuJYBps0jUlr9WNBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*I68rFlxflZst6pKPMq77UA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*Qs41ywk3Rj5cjG4zXHJD7g.png" /></figure><blockquote>In this article, we are going to implement a light weight GaugeView in iOS XCode using ABGaugeViewKit with Dynamic features.</blockquote><h3><strong>Key Features:</strong></h3><ol><li>N number of Arcs with custom area for each arc.</li><li>Customisable overall arc angle.</li><li>Cool animations.</li><li>Simple and lightweight.</li></ol><h3>Steps:</h3><ol><li>Create a new project in XCode.</li><li>Add ABGaugeViewKit in your project.</li><li>Prepare ABGaugeView using Storyboard.</li><li>Things to keep in mind before setting parameter values.(This one is important)</li></ol><h4>1. Create a new project in XCode</h4><p>Open XCode, goto File&gt;New&gt;Project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*AIIDNA9VfvkrZdfA3dGREQ.png" /><figcaption>1. New Project View in XCode 9</figcaption></figure><p>Select “Single View App” as shown in image no. 1 and click NEXT.</p><p>Then, add Product Name. You can add your own product name. For tutorial purpose let’s give it a name “ABGaugeExample” and click NEXT.</p><h4>2. Add ABGaugeViewKit in your project</h4><p>In this step, we will add Podfile in our project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*MiWWXVW3SRD3VPL0D6E-sQ.png" /><figcaption>2. Snapshot of podfile</figcaption></figure><ol><li>Launch Terminal and goto your project’s directory.</li><li>Type <strong><em>pod init </em></strong>and press enter in Terminal. This command will create podfile in your project.</li><li>Type <strong><em>open podfile </em></strong>and press enter in Terminal. This command will open podfile in TextEditor.</li><li>In Podfile, add &gt; pod ‘ABGaugeViewKit’ &lt; like shown in image no. 2</li><li>save podfile and close your project.</li><li>Goto Terminal, and type <strong><em>pod install</em></strong>. This command will install the framework.</li></ol><h4>3. Prepare ABGaugeView using Storyboard.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUmxkVjO3y9xHHhxUzKvLw.png" /><figcaption>3. Add same width and height constraints</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qnPlc5FZjaJxr2ytp7VlJg.png" /><figcaption>4. Add center horizontally and vertically constraints</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-t_5IZ81EyaxEvVtfxv5pQ.png" /><figcaption>5. Change class name from UIView to ABGaugeView</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*WnN3HTyArcvW9-DX6qnuAw.png" /><figcaption>6. Change parameters value</figcaption></figure><ol><li>Once the framework is installed, goto project directory and open <em>YourProjectName.workspace.</em></li><li>Goto Main.stoyboard and add a UIView to ViewController.</li><li>Add same width and height constraints for eg. 240 as shown in image no. 3.</li><li>Add center horizontally and vertically constraints as shown in image no. 4.</li><li>Goto Identity Inspector and change the class name to ABGaugeView as shown in image no. 5.</li><li>Goto Attributes Inspector to change the attributes of the Gauge View such as following attributes <strong><em>Color Codes, Areas, Arc Angle, Needle Color, Needle Value, Apply Shadow, Is Round Cap, Blink Animate, Circle Color, Shadow Color.</em></strong></li></ol><h3><strong>4. Things to keep in mind before setting parameter values.</strong></h3><ol><li><em>Color Codes</em>: You should add set of hex code of colors you want in your gaugeView combined by a comma.</li><li><em>Areas</em>: Add area of each arc combined by comma with a total of <strong>100</strong>. Also, note that <strong>number of Color Codes</strong> and <strong>number of areas</strong> should be <strong>equal</strong>.</li><li><em>Arc Angle</em>: You can add value from 0.1 to 3.6.</li><li><em>Needle Value</em>: You can add value from 0 to 100.</li><li><em>Apply Shadow</em>: You can toggle the shadow for ABGaugeView.</li><li><em>Is Round Cap</em>: You can toggle the round cap end of the ABGaugeView.</li><li><em>Blink Animate</em>: You can toggle the animate for ABGaugeView’s arc.</li><li><em>Circle Color</em>: You can change circle color of the needle.</li><li><em>Shadow Color</em>: You can shadow of the ABGaugeView.</li></ol><h3><strong>Finally, Build and Run :)</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=571ff97d1a68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ajay-bhanushali/create-gaugeview-speedometer-in-swift-571ff97d1a68">iOS: Create GaugeView/Speedometer in Swift 4 using ABGaugeViewKit</a> was originally published in <a href="https://medium.com/ajay-bhanushali">Ajay Bhanushali</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>