<?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 Ajay Bhanushali on Medium]]></title>
        <description><![CDATA[Stories by Ajay Bhanushali on Medium]]></description>
        <link>https://medium.com/@ajayrbhanushali?source=rss-ab60d8476de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OLus-m86DmlYogfsFrV5YQ.png</url>
            <title>Stories by Ajay Bhanushali on Medium</title>
            <link>https://medium.com/@ajayrbhanushali?source=rss-ab60d8476de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:03:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajayrbhanushali/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[Creating a Custom Keyboard Shortcut for Autopopulating Messages in Mac]]></title>
            <link>https://medium.com/@ajayrbhanushali/creating-a-custom-keyboard-shortcut-for-autopopulating-messages-in-mac-af7bfd57d657?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/af7bfd57d657</guid>
            <category><![CDATA[applescript]]></category>
            <category><![CDATA[automate]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 09:43:32 GMT</pubDate>
            <atom:updated>2024-03-06T09:49:37.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*2UsCaOfjnVI-88fUFoDd9A.png" /></figure><p>Have you ever wondered if it’s possible to automate the process of typing a specific message with just a keyboard shortcut? The answer is a resounding yes! In this blog post, we’ll explore how to create a script that autopopulates a message whenever you type a designated shortcut on your MacBook.</p><h3>Prerequisites:</h3><p>Before diving into the process, make sure your MacBook is running macOS and that you’re familiar with basic scripting concepts.</p><h4>Step 1: Launch Automator</h4><p>Begin by opening Automator, a powerful automation tool built into macOS. You can find it in your Applications folder.</p><h4>Step 2: Choose “Quick Action” or “Service”</h4><p>Create a new document, and select either “Quick Action” or “Service,” depending on your macOS version. This will be the container for our script.</p><h4>Step 3: Configure the Action</h4><p>Set the workflow to receive “no input” and make it applicable to “any application.”</p><h4>Step 4: Add an AppleScript Action</h4><p>In Automator, search for “Run AppleScript” in the Actions library. Drag it into your workflow area.</p><h4>Step 5: Write the AppleScript</h4><p>Replace the default script with the following:</p><pre>applescriptCopy code</pre><pre>tell application &quot;System Events&quot; keystroke &quot;Your desired message here&quot; end tell</pre><p>Replace “Your desired message here” with the text you want to autopopulate.</p><h4>Step 6: Save and Enable Accessibility Access</h4><p>Save your service with a meaningful name, and make sure to enable Accessibility access in System Preferences &gt; Security &amp; Privacy.</p><h4>Step 7: Assign a Shortcut</h4><p>Navigate to System Preferences &gt; Keyboard &gt; Shortcuts &gt; Services, find your service, and assign a keyboard shortcut.</p><h4>Step 8: Test Your Shortcut</h4><p>Open any text editor or application, type your assigned shortcut, and watch the magic happen! Your message should be automatically typed.</p><h4>Conclusion:</h4><p>With this simple yet powerful automation, you’ve transformed your MacBook into a productivity powerhouse. Whether it’s for repetitive tasks, frequently used phrases, or quick responses, custom shortcuts can save you time and effort.</p><p>Experiment with different scripts, explore additional Automator actions, and tailor the process to suit your unique needs. Happy automating!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af7bfd57d657" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the Seas of TestFlight: Certificates Unveiled]]></title>
            <link>https://medium.com/@ajayrbhanushali/navigating-the-seas-of-testflight-certificates-unveiled-4f37b43feb1c?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f37b43feb1c</guid>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 17:06:10 GMT</pubDate>
            <atom:updated>2024-03-03T17:06:10.384Z</atom:updated>
            <content:encoded><![CDATA[<p>Embarking on the journey to share your iOS app with a select audience before its grand release? Look no further than TestFlight, Apple’s platform for beta testing. However, before your app takes flight, there are crucial certificates to secure. In this blog, we’ll unravel the mysteries of TestFlight certificates, guiding you through the process of preparing your app for its pre-launch adventure.</p><p><strong>1. Apple Developer Account: The Gateway</strong></p><p>Before you set sail, ensure you have an Apple Developer account. This account serves as your gateway to the Apple Developer Program, enabling you to access resources, certificates, and provisioning profiles needed for app distribution.</p><p><strong>2. Development Certificate: Your App’s Passport</strong></p><p>To embark on the TestFlight journey, your app needs a Development Certificate. This cryptographic key pairs with your app’s bundle identifier, allowing you to sign and install your app on physical devices during development and testing.</p><p>Steps to Obtain a Development Certificate:</p><p>- Access the Apple Developer Center.<br>- Navigate to Certificates, Identifiers &amp; Profiles.<br>- Create a new certificate, following the prompts.<br>- Download and install the certificate locally.</p><p><strong>3. App ID: Uniqueness Matters</strong></p><p>Each app on the App Store requires a unique App ID, and TestFlight is no exception. The App ID acts as a distinctive identifier for your app, ensuring it stands out amidst the sea of applications.</p><p>Creating an App ID:</p><p>- In the Apple Developer Center, go to Identifiers.<br>- Create a new App ID, specifying its unique details.<br>- Ensure that the App ID matches your Xcode project settings.</p><p><strong>4. Provisioning Profile: Charting the Course</strong></p><p>A Provisioning Profile is essential for deploying and testing your app on physical devices. It links your Development Certificate, App ID, and devices, granting permission for app installation.</p><p>Steps to Generate a Provisioning Profile:</p><p>- In the Apple Developer Center, navigate to Certificates, Identifiers &amp; Profiles.<br>- Create a new Provisioning Profile, selecting the App ID and Development Certificate.<br>- Include the devices you wish to use for testing.<br>- Download and install the Provisioning Profile in Xcode.</p><p><strong>5. TestFlight Setup: Ready for Boarding</strong></p><p>With the certificates in hand, your app is poised for TestFlight. Ensure that your Xcode project settings align with the App ID and Provisioning Profile. Activate the capability for App Store Connect to recognize your app.</p><p><strong>6. App Store Connect: Flight Control Center</strong></p><p>In App Store Connect, the command center for your app’s flight plan, create a new version of your app. Link it to the App ID and ensure the app’s information is accurate. This is where you’ll manage TestFlight builds, beta testers, and release notes.</p><p><strong>7. Uploading to TestFlight: The Final Ascent</strong></p><p>With certificates secured and App Store Connect prepped, you’re ready to upload your app to TestFlight. Use Xcode’s Organizer or the command-line tool `xcodebuild` to initiate the upload. Once the build is processed, invite beta testers, and your app is set for a limited release.</p><p><strong>Conclusion: Soar High with TestFlight</strong></p><p>Navigating the world of TestFlight certificates may seem like a complex voyage, but armed with the right credentials, your app is well-equipped for a successful pre-launch journey. Secure those certificates, follow the steps diligently, and soon your app will take flight, soaring high above the horizon of beta testing. Bon voyage! ✈️🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f37b43feb1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empowering Mobile Development: Fastlane vs. Bitrise]]></title>
            <link>https://medium.com/@ajayrbhanushali/empowering-mobile-development-fastlane-vs-bitrise-9e31b0d9486d?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e31b0d9486d</guid>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 15:06:58 GMT</pubDate>
            <atom:updated>2024-03-03T15:06:58.484Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving landscape of mobile app development, efficiency, and automation are key. Enter Fastlane and Bitrise, two robust tools designed to streamline the deployment, testing, and release processes of iOS and Android apps. In this blog post, we’ll explore the features, use cases, and differences between Fastlane and Bitrise, helping you make an informed choice for your mobile development workflow.</p><p><strong>Fastlane: Accelerating Mobile Development Workflows</strong></p><p>Fastlane, spearheaded by Felix Krause, is an open-source platform dedicated to automating iOS and Android app deployment tasks. Tailored to simplify common pain points in mobile development, Fastlane boasts a set of tools that cover everything from code signing to beta testing and continuous deployment.</p><p><strong>Key Features of Fastlane:</strong></p><p>1. Lane Configuration:<br> — Fastlane introduces the concept of “lanes,” enabling developers to define specific workflows or tasks in the development process.</p><p>2. Code Signing:<br> — Automates the code signing process, making it easier for developers to manage provisioning profiles and certificates.</p><p>3. Beta Testing:<br> — Seamless integration with beta testing services like TestFlight and Firebase, facilitating the distribution of beta builds.</p><p>4. Automated Screenshots:<br> — Tools for capturing and managing screenshots, supporting various device configurations and languages.</p><p>5. Continuous Deployment:<br> — Automates the release process to app stores, saving developers time and reducing the risk of manual errors.</p><p>6. Plugin Ecosystem:<br> — A rich plugin ecosystem that extends functionality, allowing developers to leverage existing plugins or create custom ones.</p><p><strong>Bitrise: Comprehensive CI/CD for Mobile Apps</strong></p><p>Bitrise takes a broader approach by providing a continuous integration and delivery (CI/CD) platform tailored for iOS and Android apps. Its focus extends beyond specific tasks, offering a comprehensive solution for building, testing, and deploying mobile applications.</p><p><strong>Key Features of Bitrise:</strong></p><p>1. Workflow Configuration:<br> — Developers define workflows, specifying the steps involved in the CI/CD pipeline, using a visual workflow editor.</p><p>2. Integration with Version Control Systems:<br> — Integration with popular version control systems like Git, allowing automatic triggering of builds based on code changes.</p><p>3. Build Environments:<br> — Supports multiple build environments, accommodating variations such as different Xcode versions, Android SDKs, and other dependencies.</p><p>4. Testing and Deployment:<br> — Automation of testing processes with integration with various testing services. Supports deployment to app stores and other distribution channels.</p><p>5. Extensibility:<br> — Offers a variety of integrations and step templates, making it extensible and adaptable to different project needs.</p><p>6. Logs and Notifications:<br> — Detailed logs and notifications keep developers informed about the status of builds and deployments.</p><p><strong>Difference Between Fastlane and Bitrise:</strong></p><p>1. Scope:<br> — Fastlane focuses on automating specific tasks related to app development.<br> — Bitrise is a comprehensive CI/CD platform covering the entire continuous integration and delivery process.</p><p>2. Configuration:<br> — Fastlane uses a `Fastfile` to define “lanes” for task automation.<br> — Bitrise employs a visual workflow editor for configuring the steps in the CI/CD pipeline.</p><p>3. Flexibility and Extensibility:<br> — Fastlane is highly flexible and extensible through its plugin system.<br> — Bitrise provides extensibility through integrations and pre-built steps.</p><p>4. Focus:<br> — Fastlane excels in task-specific automation such as code signing, beta testing, and deployment.<br> — Bitrise offers a holistic approach to CI/CD with a focus on end-to-end automation of the development workflow.</p><p>5. Usage:<br> — Fastlane can be used independently or in conjunction with other CI/CD tools.<br> — Bitrise is a standalone CI/CD platform designed for end-to-end mobile app development processes.</p><p><strong>Choosing the Right Tool for Your Workflow:</strong></p><p>The choice between Fastlane and Bitrise often depends on the specific needs and preferences of your development team. Fastlane shines in its specialization for certain tasks, while Bitrise offers a more encompassing solution for teams seeking a comprehensive CI/CD platform. Some teams even find value in using both tools in tandem for a more customized and flexible approach.</p><p>In the dynamic world of mobile development, the right tool can make all the difference. Whether you opt for the task-focused automation of Fastlane or the comprehensive CI/CD capabilities of Bitrise, the goal remains the same: to empower your team, enhance efficiency, and deliver stellar mobile applications to users worldwide.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e31b0d9486d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing iOS App Communication: A Deep Dive into TLS]]></title>
            <link>https://medium.com/@ajayrbhanushali/securing-ios-app-communication-a-deep-dive-into-tls-55c8c82044e6?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/55c8c82044e6</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 13:52:26 GMT</pubDate>
            <atom:updated>2024-03-26T08:00:27.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yPwEJVDKuLBa5rOrK0v3A.jpeg" /></figure><p>In the ever-evolving landscape of iOS app development, ensuring the security of data transmitted between apps and servers is paramount. Transport Layer Security (TLS), a cryptographic protocol, stands at the forefront of securing these communications. In this blog post, we’ll explore the key aspects of TLS in the context of iOS development, shedding light on its functionalities and best practices.</p><p><strong>1. Encryption and Secure Communication:</strong><br>TLS serves as the guardian of secure communication channels. By encrypting data during transmission, it thwarts potential eavesdropping and tampering, safeguarding sensitive information exchanged between the client (iOS app) and the server.</p><p><strong>2. Handshake Process:</strong><br>The TLS handshake is a vital part of establishing a secure connection. During this process, the client and server engage in negotiating encryption algorithms, exchanging cryptographic keys, and verifying each other’s identities. This meticulous dance ensures a mutual agreement on a secure method of communication.</p><p><strong>3. Certificates and Public Key Infrastructure (PKI):</strong><br>TLS relies on digital certificates to establish trust in the identities of the communicating parties. The server presents its digital certificate, including a public key, to the client. The client, in turn, validates the certificate using a trusted Certificate Authority (CA).</p><p><strong>4. NSURLConnection and URLSession:</strong><br>In iOS, network communication is facilitated by classes like `NSURLConnection` (deprecated in newer iOS versions) or `URLSession`. These classes inherently support TLS for secure communication. When connecting to a secure server (<a href="https://">https://</a>), TLS is automatically engaged, ensuring a secure data exchange.</p><p><strong>5. App Transport Security (ATS):</strong><br>App Transport Security is a robust feature in iOS that enforces secure connections between an app and its backend. It mandates adherence to modern security protocols, including the use of TLS, to ensure the integrity and confidentiality of data in transit.</p><p><strong>6. SSL Pinning:</strong><br>SSL pinning is a security practice wherein an app validates the server’s SSL certificate against a locally-stored certificate or public key. This practice fortifies the app against man-in-the-middle attacks, ensuring that the app communicates only with a trusted server.</p><p><strong>7. Adoption of Modern TLS Versions:</strong><br>iOS encourages the use of the latest TLS versions, aligning with industry best practices. Developers should ensure their server supports contemporary TLS versions to benefit from the latest security enhancements.</p><p><strong>8. App Security Best Practices:</strong><br>Upholding security best practices is crucial. Developers should steer clear of insecure protocols like HTTP, adopt strong encryption algorithms, and stay abreast of updates to TLS protocols and encryption standards.</p><p>In conclusion, TLS serves as the bedrock for securing iOS app communications. Developers are urged to leverage its capabilities, integrate best practices, and fortify their apps against potential security threats. As we navigate the dynamic landscape of iOS development, the steadfast adoption of TLS ensures that our apps communicate securely, earning the trust of users and safeguarding sensitive data. Stay secure, stay informed! 🔐 #iOSDev #AppSecurity #TLSExplained</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55c8c82044e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Your iOS App Build: Speed vs Size]]></title>
            <link>https://medium.com/@ajayrbhanushali/optimizing-your-ios-app-build-speed-vs-size-5e65d7eea8c9?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e65d7eea8c9</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 09:09:22 GMT</pubDate>
            <atom:updated>2024-03-14T08:09:50.890Z</atom:updated>
            <content:encoded><![CDATA[<p>Optimizing Your iOS App Build: Speed vs Size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hGuNrrb9DmoBIJdL0Q6AXw.jpeg" /></figure><p>When developing an iOS application in Xcode, one of the critical considerations is how the compiler generates machine code for your app. The build settings offer options to optimize either for speed or for size, each impacting the performance and footprint of your final executable. In this blog post, we’ll delve into the differences between “Optimize for Speed” and “Optimize for Size” and how to make the right choice for your project.</p><h4>Optimize for Speed</h4><p>Choosing “Optimize for Speed” instructs the compiler to generate code that executes as quickly as possible. This option employs various optimization techniques, such as loop unrolling and function inlining, to enhance the runtime performance of your application. If your primary concern is delivering a responsive and high-performance user experience, optimizing for speed is a logical choice.</p><p>To enable optimization for speed, navigate to your Xcode project settings, select the target for your app, and locate the “Optimization Level” setting. Choose options like “Fastest [-O, -O1]” or “Fastest, Aggressive Optimizations [-Ofast, -O3]” to prioritize speed.</p><h4>Optimize for Size</h4><p>On the other hand, if minimizing the size of your compiled binary is a priority, “Optimize for Size” is the way to go. This option focuses on reducing the overall footprint of your application, making it ideal for scenarios where download size or storage constraints are critical considerations.</p><p>To enable optimization for size, again, navigate to the “Optimization Level” setting in your project settings. Select “Smallest [-Os]” to instruct the compiler to prioritize size over speed.</p><h4>Setting the Optimization Level in Xcode</h4><p>1. Open your Xcode project.<br>2. Navigate to the project settings by selecting the project in the Project Navigator.<br>3. Select the target for your app.<br>4. Go to the “Build Settings” tab.<br>5. Search for “Optimization Level” in the search bar.<br>6. Adjust the “Optimization Level” setting to your preferred option.</p><p><strong>Choosing the Right Option</strong></p><p>The decision between optimizing for speed and size ultimately depends on your project’s specific requirements. If your app demands optimal runtime performance, favor “Optimize for Speed.” Conversely, if you’re striving to minimize the app’s download size, opt for “Optimize for Size.”</p><p>It’s crucial to note that these optimization settings may introduce trade-offs. After making changes, thoroughly test your application to ensure that the chosen optimization aligns with your performance and size goals.</p><p><strong>In conclusion,</strong> understanding the impact of optimization settings empowers you to tailor your iOS app’s build to meet the specific needs of your project. Whether it’s delivering lightning-fast responsiveness or ensuring a compact download size, the right optimization choice can significantly influence your app’s success.</p><p>If you found the insights helpful, give it a clap and share it with your developer community! 👏👏👏👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e65d7eea8c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Real-Time Communication: Crafting a Dynamic Multi-Vendor Architecture for iOS]]></title>
            <link>https://medium.com/@ajayrbhanushali/enhancing-real-time-communication-crafting-a-dynamic-multi-vendor-architecture-for-ios-4935deb05ee5?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/4935deb05ee5</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[rtc]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 09:10:48 GMT</pubDate>
            <atom:updated>2024-02-23T09:10:48.764Z</atom:updated>
            <content:encoded><![CDATA[<p>Multi-Vendor Architecture refers to a design capable of seamlessly managing numerous Real-Time Communication (RTC) libraries within an application. This architecture provides the flexibility to effortlessly incorporate new RTCs in the future, requiring minimal modifications to the existing codebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pBtu7z51sf3JGlFd1epyg.png" /></figure><h3>😰 Problems?</h3><p><strong><em>Comic Woes: Unveiling the Challenges in our RTC Codebase</em></strong></p><ol><li><strong>The Monopoly Menace 😈</strong><br>“RTC: Where Money Talks, and Our Code Walks”<br>The reliance on a single RTC became a villain in our code. If it breaks, so does our application. It’s like having a monetary monopoly in the tech world — definitely not what we signed up for!</li><li><strong>Love Birds (Tightly Coupled Code) 👩‍❤️‍👨</strong><br>“Code Love Story: When RTC and Business Logic Couldn’t Let Go”<br>Our code had a love affair gone wrong — the RTC library was too intertwined with the view files, resulting in a chaotic mix of business logic and RTC features. It violated SOLID principles and made unit testing an impossible mission.</li><li><strong>HULK (Massive View Controllers) 🧌<br></strong>“The HULK Effect: Massive View Controllers Smash Performance”<br>Our ViewControllers turned into monsters, especially the Massive ones! Touching them was like poking the Hulk — risky and frightening. Making small changes caused errors in child VCs, scaring developers and smashing the performance of live sessions.</li></ol><h4>Previous Architecture 🤕</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXUXURWLXZo8HZDAquxoBw.png" /></figure><p>The Parent View Controller tightly couples with the RTC Library by importing it for data exchange, creating a direct link. Consequently, this intertwining extends to its child View Controllers, establishing a strong Parent-Child Dependency as they share the data.</p><h3>Solution 😌</h3><p><strong><em>The RTC Manager: Your Code’s New Sidekick!</em></strong> 🦸‍♂️</p><p>The RTC Manager will be the <strong>middle man(Abstraction Layer)</strong> between the <strong>Application</strong> and <strong>RTC libraries</strong>.</p><ol><li><strong>The love birds now have some breathing room:</strong> With the introduction of the RTC Manager positioned between the Application code and RTC Libraries, tightly coupled code has been dismantled, creating a more loosely coupled structure.</li><li><strong>Say goodbye to the Hulk effect:</strong> With the RTC Manager shouldering the responsibilities of RTC, the Massive View Controllers are reverting to a more manageable and standard size.</li><li><strong>Breaking the Monopoly:</strong> The RTC Manager, empowered by Protocol-Oriented Programming (POP) and Multicast Delegates, can seamlessly integrate numerous RTCs. This flexibility allows for effortless switching between RTCs, eliminating the single dependency on a sole RTC.</li></ol><h4>Let’s delve into the details</h4><p>The RTC Manager is constructed by adhering to RTC Manager Protocols, leading to the creation of distinct classes for various RTCs. For clarity, let’s consider that the we have created three different classes confirming to RTC Manager Protocols:</p><ol><li>AgoraManager: RTCManagerProtocol</li><li>VonageManager: RTCManagerProtocol</li><li>ETCManager: RTCManagerProtocol</li></ol><p>Each of these classes confirms to the RTCManagerProtocol. When a caller directs the RTCManager to establish a connection with a particular RTC, like Agora RTC, the RTCManager initializes the AgoraManager class specifically designed for Agora RTC. This smooth process applies similarly to other RTC types, such as Vonage or any additional RTCs, ensuring a coherent and modular architecture.</p><p>In essence, the integration of any new RTC becomes a straightforward task — a matter of adding a new class that conforms to the RTC Manager Protocols.</p><p><strong>For a deeper understanding, feel free to read on; otherwise, sayonara!</strong></p><p>Building on the previous example, consider three classes requiring access to the RTC Manager for distinct purposes. The VideoVC utilizes it for streaming Audio/Video, ChatVC leverages it to display online/offline status, and ClassroomVC relies on it to showcase the number of attendees in the session. In this scenario, these classes necessitate a single instance of RTC Manager for seamless coordination of functionalities.</p><p>By conforming to the RTC Manager’s protocol, a class gains access to the RTC Manager object without needing to create a separate instance. Notably, this RTC Manager object isn’t a Singleton or Static entity, ensuring unit testability.</p><p>Now, you might wonder how the same data is shared across different classes without a singleton/static structure. The answer lies in utilizing an Injector, which facilitates the sharing of the fileprivate instance of RTC Manager among classes. All that’s required is for these classes to conform to the Injector, enabling seamless data exchange.</p><p>For a more concrete understanding, let’s take a look at the accompanying code:</p><pre>// RTC Manager&#39;s Object<br>fileprivate var filePrivateRtcManager: RtcManager? = RtcManager()<br><br>// Injector Protocol to give access of above RTC Manaager<br>protocol RtcManagerInjector {<br>    var rtcManager: RTCManagerProtocol { get }<br>}<br><br>// Default Implentation <br>extension RtcManagerInjector {<br>    var rtcManager: RTCManagerProtocol {<br>        guard let rtcManager = filePrivateRtcManager else {<br>            rtcManager = RtcManager()<br>            return rtcManager!<br>        }<br>        return rtcManager<br>    }<br>}<br></pre><p>Next, these classes can confirms the Manager’s data/stream delegates for efficient data streaming between them and the RTC. However, faced with the limitation of a 1:1 relationship with delegates, we sought a more robust solution.</p><p>Enter Multicast Delegate, a game-changer in managing a 1:N relationship. Leveraging Multicast Delegate, we successfully extended the ability to share data from the Manager to multiple delegates. This pivotal shift eradicated the Parent-Child Dependency previously present in the View Controllers.</p><p>In conclusion, the revamped architecture takes shape as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2oMzoRziasBjfBspwqueQ.png" /></figure><h3><strong>Benefits Overview</strong></h3><p>ChatGPT</p><h4><strong>Major Benefits</strong></h4><ol><li>Scalable Architecture</li><li>Modularized Code</li><li>Clean Data Flow</li><li>Efficient RTC Integration</li><li>Code Cleanliness</li><li>Enhanced Unit Testing</li></ol><h4><strong>Performance Boost</strong></h4><p>Improved CPU Utilization</p><p>The performance metrics tell a compelling story — CPU utilization has significantly decreased from 33% before the changes to a more optimized 21% afterward. This indicates a notable enhancement in system efficiency and resource utilization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2anBxz6-_0EZMrS-HNyH8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXgmgvBGKT-HS2tX5MVOGg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4935deb05ee5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Guide for Bitrise CI/CD for iOS apps]]></title>
            <link>https://medium.com/@ajayrbhanushali/bitrise-ci-cd-for-ios-apps-8b2c44c4a555?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b2c44c4a555</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[bitrise]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 06:45:44 GMT</pubDate>
            <atom:updated>2022-07-02T07:10:04.808Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HDxi42c_cAevrBsfDj5bmw.jpeg" /></figure><p>Have you ever felt like there should be a system which can take care of everything such as archiving the builds to publishing the build on AppStore once we push code to the release branch?</p><p>Generally in QA cycles, we all know how much gets wasted again &amp; again creating the build after fixing those bugs.</p><p>Well to solve the above and other similar problems Bitrise comes into the picture.</p><p>In this article, we will learn about Bitrise, adding our apps in Bitrise, creating a flow to build and publish the code to App Store and a few more things.</p><h3>What is Bitrise?</h3><blockquote><a href="https://devcenter.bitrise.io/"><em>Bitrise is a Continuous Integration and Delivery (CI/CD) Platform as a Service (PaaS) with the main focus on mobile app development (iOS, Android, React Native, Flutter, and so on). It is a collection of tools and services to help you with the development and automation of your software projects.</em></a></blockquote><p>So basically, Bitrise is another developer to help us with all the noncoding parts such as <strong>archiving the builds</strong>, <strong>testing the unit cases</strong>, <strong>deploying the app on AppStore, etc</strong>.</p><h3>Our Objective</h3><p>Our objective is to save time and manual efforts such as:</p><ol><li>Deploy apps directly without any system(Xcode) dependency</li><li>Create builds on demand</li><li>Trigger builds to the AppStore automatically</li></ol><h3>Setup</h3><p>Setup is actually easy just a bit tedious</p><h3>How to add a new iOS app on Bitrise?</h3><p><a href="https://devcenter.bitrise.io/en/getting-started/getting-started-with-ios-apps.html#ot-lst-cnt">Getting started with iOS apps</a></p><p><a href="https://www.youtube.com/watch?v=xa4kUQtT2NU">How to add an iOS App to Bitrise | TUTORIAL</a></p><ol><li>Go to your Bitrise <a href="https://app.bitrise.io/dashboard">Dashboard</a>.</li><li>Click the <strong>+</strong> sign on the top menu bar and select <strong>Add New App on web UI</strong>, which takes you to the <strong>Create New App</strong> page.</li><li>Choose the account you wish to add the app to.</li><li>Set the privacy of the app to either <strong>Private</strong> or <strong>Public</strong> and click <strong>Next</strong>. You should select Private in our case.</li><li>Select the Git hosting service that hosts your repository, then find and select your own repository that hosts the project.</li><li>When prompted to set up repository access, click <strong>No, auto-add SSH key</strong>.<br>A. You will see an SSH Key on the screen, copy that.<br>B. Go to bitbucket&gt; Personal Settings, SSH Keys in the left bar</li><li>Type the name of the branch that includes your project’s configuration — main, for example, - then click <strong>Next</strong>.</li><li>Wait while Bitrise is validating your project.<br>We look for your configuration files and set up your app based on them. In the case of an iOS app, we’re looking for your Xcode Project (.xcodeproj) or Xcode Workspace (.xcworkspace) path. Note that the validation will fail if you do not have a SHARED scheme in your project. You can still point Bitrise manually to your Xcode scheme but if it’s shared, we automatically detect it for you.</li><li>Select the IPA export method. You can modify this later — for now, select <strong>development</strong>.<br>Once you clicked it, you should see your:<br>&gt; Project or Workspace path.<br>&gt; Scheme name<br>&gt; IPA export method<br>&gt; iOS stack</li><li>Register a webhook when prompted so that Bitrise can start a build automatically when code is pushed to your repository, or a pull request is created. This also kicks off your first build — click the message and it will take you to the build page.</li></ol><ul><li>Scheme name</li><li>IPA export method.</li><li>iOS stack.</li></ul><figure><img alt="Img 1" src="https://cdn-images-1.medium.com/max/826/1*SwOCu4hFcMvsehhHOaMAmg.png" /><figcaption>Step 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6uENadnySowF4RhHaq5EQ.png" /><figcaption>Step 3</figcaption></figure><h3>Workflow in Bitrise</h3><blockquote><a href="https://devcenter.bitrise.io/en/steps-and-workflows.html"><em>Steps and Workflows are the heart of how Bitrise works. A Bitrise build is simply a series of Steps, defined in a Workflow, executed by the Bitrise CLI on our virtual machines (or your own).</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*N2wjDP0o1284bK_A_4LrQw.png" /></figure><p>For instance, we want to first clone the repo, run the cocoapods, start unit testing, archive the build, and release the build to AppStore. To achieve this series of steps, we can use a workflow that will have steps to do the same thing. When we create the app, 2 default workflows are created. 1. Primary 2. Deploy.</p><h3>Bitrise to Apple services connection</h3><p>There are three ways to connect Apple Services to Bitrise. You can find it out here in detail.<br>1. <a href="https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-api-key.html">by API Key </a>(Recommended by Bitrise)<br>2. <a href="https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-apple-id.html">by Apple ID</a><br>3. <a href="https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-step-inputs.html">by Bitrise Step</a></p><p>Once we have added the app, the first thing we should do is to Codesign and connect the Bitrise with Apple services as Bitrise needs it for the following steps.</p><h3>Bitrise to Apple services connection by API KEY</h3><p>You <strong>must refer to the </strong><a href="https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-api-key.html#ot-lst-cnt"><strong>link</strong></a><strong> </strong>for the steps to integrate it into Bitrise. In our case, we have already created the API key required from AppStoreConnect. Hence, you can directly jump to adding this key in Bitrise.<br>You must contact the iOS team to get API Key, Issuer ID, and Key ID.</p><p><em>Note: Same API key can be used for different iOS apps.</em></p><h3>Automatic Codesigning in Bitrise</h3><p><a href="https://devcenter.bitrise.io/en/code-signing/ios-code-signing/managing-ios-code-signing-files---automatic-provisioning.html#configuring-the-steps-for-automatic-provisioning">The following Steps manage your code signing files AND build your project at the same time if the <strong>Automatic code signing method</strong></a> input is enabled in their Step inputs:</p><ul><li><strong>Xcode Archive and Export for iOS</strong> Step</li><li><strong>Export iOS and tvOS Xcode Archive</strong> Step</li><li><strong>Xcode build for testing for iOS</strong> Step</li></ul><p><em>Note: These Steps will NOT automatically download .p12 signing certificates, only provisioning profiles. You must upload certificates to Bitrise yourself.</em></p><h3>Export &amp; upload .p12 certificate to Bitrise</h3><p>In order to export .p12 signing certificate, you can <a href="https://devcenter.bitrise.io/en/code-signing/ios-code-signing/collecting-and-exporting-code-signing-files-with-codesigndoc.html#collecting-and-exporting-code-signing-files-with-codesigndoc">refer to this link</a> or follow the mentioned steps.</p><ol><li>Open Terminal, go to project directory.</li><li>Paste and run the command:<br>bash -l -c “$(curl -sfL https://raw.githubusercontent.com/bitrise-io/codesigndoc/master/_scripts/install_wrap-xcode.sh)&quot;</li><li>Select Scheme which is usually Prod in our case.</li><li>After some time, terminal will ask for ipa export method. Select app-store.</li><li>Again it will ask for another ipa export method. Just type NO.</li><li>Finally, it will ask “Do you want to upload the provisioning profiles and certificates to Bitrise? [yes/no] :” type no.</li><li>.p12 file will be in project folder&gt;codesigndoc_exports folder</li><li>Drag-and-drop or click the .p12 certificate(s) in the <strong>Bitrise</strong>&gt;<strong>Workflow </strong>tab&gt;<strong>Code Signing</strong> tab&gt;<strong>Add the private key (.p12) for signing</strong> field.</li></ol><h3>STEPS</h3><h3><a href="https://www.bitrise.io/integrations/steps/cache-pull">Activate SSH key (RSA private key)</a></h3><p>This Step makes sure Bitrise has access to your repository and thus able to clone your code to our virtual machines.</p><h3><a href="https://www.bitrise.io/integrations/steps/git-clone">Git Clone Repository</a></h3><p>The Step checks out the defined repository state, optionally update the repository submodules and exports the achieved git repository state properties.</p><h3><a href="https://www.bitrise.io/integrations/steps/cache-pull">Bitrise.io Cache:Pull</a></h3><p>Downloads the build cache from Bitrise, and moves the files back to their original place. The aim is to speed up your builds as not having to download every single dependency every time can be a serious timesaver.</p><h3><a href="https://www.bitrise.io/integrations/steps/set-xcode-build-number">Set Xcode Project Build Number</a></h3><p>Set the value of your iOS app’s bundle version in the Info.plist file to the specified version number.</p><p>env var $PROJECT_PATH in our case is “UpGrad/Resource/Info.plist“<br>We do not have to make any changes and it will work smooth.</p><h3><a href="https://www.bitrise.io/integrations/steps/cocoapods-install">Run CocoaPods install</a></h3><p>As the name suggests, this step installs the pods.</p><h3><a href="https://devcenter.bitrise.io/en/builds/caching.html">Bitrise.io Cache:Push</a></h3><p>This step helps in caching dependency managers such as pods.</p><p>Speeds up the process</p><p>Caching expires after 7 days</p><h3><a href="https://www.bitrise.io/integrations/steps/xcode-archive">Xcode Archive &amp; Export for iOS</a></h3><p>This step is used to archive the build. Most fields will be prefilled. We have to make changes in a few fields which are mentioned below.</p><ul><li><strong>Automatic code signing</strong>&gt;<strong>Automatic code signing method</strong>: Select <strong>api_key</strong> from the dropdown.</li></ul><h3><a href="https://www.bitrise.io/integrations/steps/deploy-to-itunesconnect-deliver">Deploy to App Store Connect with Deliver</a></h3><p>Upload screenshots, metadata, and binaries to App Store Connect (iTunes Connect) and submit your app for App Store review.</p><ul><li><strong>Bitrise Apple Developer Connection</strong>: Select <strong>api_key </strong>from the dropdown.</li></ul><h3><a href="https://devcenter.bitrise.io/en/testing/running-xcode-tests.html#ot-lst-cnt">Xcode Test for iOS</a></h3><p>To run Xcode tests on Bitrise, you need to have test targets defined in your projects. You need two Steps to run Xcode tests and view their results:</p><ul><li><strong>Xcode Test for iOS</strong>.</li><li><strong>Deploy to</strong> <strong>Bitrise.io</strong>.</li></ul><h3><a href="https://www.bitrise.io/integrations/steps/firebase-dsym-upload">Firebase DSYM upload</a></h3><p>Upload dysm(Xcode Debug Symbols File) files automatically to Firebase.</p><ol><li>Add this step after the step “deploy to bitrise.io”</li><li>In parameter “location of your GoogleService-Info.plist“ add its location in our case “UpGrad/Resource/Firebase/Prod/GoogleService-Info.plist“</li></ol><p>That’s it.</p><h3><a href="https://www.bitrise.io/integrations/steps/xcode-analyze">Xcode Analyze</a></h3><p>Find flaws and potential bugs in the source code of an app with the static analyzer built into Xcode.</p><h3>Workflow: Deploy</h3><p>In a general scenario deploy workflow should contain the following steps in the given order.</p><ol><li>Activate SSH key (RSA private key)</li><li>Git Clone Repository</li><li>Bitrise.io Cache:Pull</li><li>Set Xcode Project Build Number(optional)</li><li>Run CocoaPods install</li><li>Xcode Analyze(optional)</li><li>Xcode Test for iOS(optional)</li><li>Xcode Archive &amp; Export for iOS</li><li>Deploy to App Store Connect with Deliver</li><li>Bitrise.io Cache:Push</li><li>Firebase DSYM upload</li></ol><p>Once, we completed the entire setup and created the required workflow, we can actually create build and deploy it to AppStore.</p><h3>Create builds on demand</h3><ol><li>Go to your dashboard and tap on “Start/Schedule new build”</li><li>Inside pop-up, mention branch name and workflow name</li><li>Tap on Start Build</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tx7xiBEiATbS8JzFt9Rs2A.png" /></figure><h4><a href="https://devcenter.bitrise.io/en/builds/starting-builds/triggering-builds-automatically.html#triggering-builds-with-code-push">Trigger builds to the AppStore automatically</a></h4><p>We can triggers builds automatically in 3 ways. Triggers helps in reducing developer efforts of manually starting the builds.</p><ol><li>Push</li><li>Pull Request</li><li>TAG</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b2c44c4a555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS: Create Ticket View, Coupon View in Swift 4+ using ABTicketView]]></title>
            <link>https://medium.com/@ajayrbhanushali/ios-create-ticket-view-coupon-view-in-swift-4-using-abticketview-ec7a69366c66?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec7a69366c66</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[couponview]]></category>
            <category><![CDATA[abticketview]]></category>
            <category><![CDATA[coupon]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 17:00:53 GMT</pubDate>
            <atom:updated>2019-04-21T17:00:53.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*1gDCNv7WQaTTBOr2uDGuYA.gif" /><figcaption>Quick demo of ABTicketView</figcaption></figure><blockquote><em>In this article, we are going to integrate Ticket View/Coupon View using a simple library ABTicketView with its cool features</em></blockquote><h3>Key Features:</h3><ol><li>Easy to integrate using IBDesignables</li><li>Customisable circle radius, cutting depth and sides</li><li>Simple AF</li></ol><h3>Steps:</h3><ol><li>Create a new project in XCode.</li><li>Add ABTicketView in your project.</li><li>Prepare ABTicketView using Storyboard.</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 “ABTicketViewExample” and click NEXT.</p><h4>2. Add ABTicketView 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/314/1*fTtqjIM4LZszS0td__Im7g.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 ‘ABTicketView’ &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 ABTicketView using Storyboard.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*jo_x3Q41iXDa5Qo5THUOsg.gif" /><figcaption>3. Whole demo on how to use ABTicketView from Storyboard</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>Goto Identity Inspector and change the class name to ABGaugeView as shown in the gif just above.</li><li>Goto Attributes Inspector to change the attributes of the Ticket View such as following attributes <strong><em>Circle Diameter, Circle Depth and Ticket Color</em></strong></li></ol><h3>Finally, Build and Run :)</h3><p>Also, show your support on <a href="https://github.com/AjayBhanushali/ABTicketView">github</a> by giving a star ⭐️ to ABTicketView 🙈</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec7a69366c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS: Create Shining aka Shimmer effect like YTube/FB in your app using ABLoaderView]]></title>
            <link>https://medium.com/@ajayrbhanushali/ios-create-shining-loader-like-ytube-fb-in-your-app-using-abloaderview-87e0517ccbfd?source=rss-ab60d8476de------2</link>
            <guid isPermaLink="false">https://medium.com/p/87e0517ccbfd</guid>
            <category><![CDATA[abloaderview]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[progress]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[shining]]></category>
            <dc:creator><![CDATA[Ajay Bhanushali]]></dc:creator>
            <pubDate>Fri, 20 Jul 2018 17:40:19 GMT</pubDate>
            <atom:updated>2018-07-23T16:38:36.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*8nCWgsTRgfvGrwMPYlwuig.gif" /></figure><blockquote>In this post, we are going to build an amazing loader aka <strong>Shimmer</strong> effect to Make your app look trendy and smart using ABLoaderView.</blockquote><h3>Why ABLoaderView over others?</h3><p>Basically, other shimmers are created using images and views whereas <strong>ABLoaderView uses only layers</strong> which in return does not add load on <strong>view hierarchy </strong>and <strong>runtime memory</strong>.</p><h3><strong>Key Features:</strong></h3><ul><li>Layer based designing — Hence no need to worry about the size at run time.</li><li>Smart Shining — Add shining(loading) effect to all the subviews of a view.</li></ul><h3>Steps:</h3><ol><li>Create a new project in Xcode.</li><li>Add ABLoaderView in your project.</li><li>Done — Time to use a trendy loader in your app.</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*dcYKFP2rX4Qbliw53lD_tA.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 “ABLoaderViewDemo” and click NEXT.</p><h4>2. Add ABLoaderView 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/233/1*nRGOdr-SMhncGli2dsFbbw.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 ‘ABLoaderView’ &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><strong>3. Done — Time to use it in our app</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W7kR_3JKqVSEyvUU8hEnFg.png" /><figcaption>3. Screenshot of Project</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*sCyxTyjmOiB0jYDJIOIeug.gif" /><figcaption>4. Here is the output</figcaption></figure><ol><li>For this example, we have added a view which contains an image view and a label.</li><li>Add a UISwitch for toggling between loader effect.</li><li>Create IBOutlets/IBActions as shown in image no. 3.</li><li>import ABLoaderView in your ViewController.</li><li>To start smart loader call: <br>ABLoader().startSmartShining(&lt;your parent view&gt;) <br><strong>Using, only one line you can apply loader to all its subview.</strong></li><li>To stop smart loader call: <br>ABLoader().stopSmartShining(&lt;your parent view&gt;)<br>Refere image no. 3 for guidance.</li><li>You can start/stop this loader to individual view by using following methods:<br>ABLoader().startShining(&lt;yourView&gt;)<br>ABLoader().stopShining(&lt;yourView&gt;)</li></ol><h4>More where this came from</h4><p>This story is published in <a href="http://blog.usejournal.com/">Noteworthy</a>, where thousands come every day to learn about the people &amp; ideas shaping the products we love.</p><p>Follow our publication to see more product &amp; design stories featured by the <a href="https://usejournal.com/?utm_source=usejournal.com&amp;utm_medium=blog&amp;utm_campaign=guest_post">Journal</a> team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e0517ccbfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <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-ab60d8476de------2</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:04 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>