<?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 Benjamin Inemugha on Medium]]></title>
        <description><![CDATA[Stories by Benjamin Inemugha on Medium]]></description>
        <link>https://medium.com/@binemugha?source=rss-43765f97680c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Myr6FsytX0A07EHj1ubb-Q.jpeg</url>
            <title>Stories by Benjamin Inemugha on Medium</title>
            <link>https://medium.com/@binemugha?source=rss-43765f97680c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:54:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@binemugha/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[Pull to refresh in web view in UIKit iOS]]></title>
            <link>https://medium.com/@binemugha/pull-to-refresh-in-web-view-in-uikit-ios-393457f261ec?source=rss-43765f97680c------2</link>
            <guid isPermaLink="false">https://medium.com/p/393457f261ec</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[webkit]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[webview]]></category>
            <category><![CDATA[uirefreshcontrol]]></category>
            <dc:creator><![CDATA[Benjamin Inemugha]]></dc:creator>
            <pubDate>Thu, 30 May 2024 07:03:39 GMT</pubDate>
            <atom:updated>2024-05-30T07:03:39.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*8deYdT-SXBDg28MB6OILbA.png" /><figcaption>Refresh control in web view UIKit</figcaption></figure><h3>Create a WKWebView</h3><p>The web view needs to be created first for the pull to refresh. To create a web view in UIKit, WebKit need to be imported and the WKWebView can be created programmatically.</p><pre>import WebKit<br><br>lazy var webView: WKWebView = {<br>     let webViewConfig = WKWebViewConfiguration()<br>     let webView = WKWebView(frame: .zero, configuration: webViewConfig)<br>     self.view = webView<br>     return webView<br>}()</pre><h3>Create a UIRefreshControl</h3><p>This is the class for the adding the refresh functionality</p><pre>let refreshControl = UIRefreshControl()</pre><h3>Add UIRefreshControl to WKWebView</h3><pre>import UIKit<br>import WebKit<br><br>let refreshControl = UIRefreshControl()<br><br>lazy var webView: WKWebView = {<br>     let webViewConfig = WKWebViewConfiguration()<br>     let webView = WKWebView(frame: .zero, configuration: webViewConfig)<br><br>     refreshControl.tintColor = .gray<br>     refreshControl.addTarget(self, action: #selector(didPullToRefresh), for: .valueChanged)<br>     webView.scrollView.refreshControl = refreshControl<br><br>     self.view = webView<br>     return webView<br>}()<br><br>@objc private func didPullToRefresh() {<br>     webView.reload()<br>     refreshControl.endRefreshing()<br>}<br><br>deinit {<br>     webView.scrollView.refreshControl = nil<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=393457f261ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix commits to git_branch in CircleCi for M1 machine failure]]></title>
            <link>https://medium.com/@binemugha/fix-commits-to-git-branch-in-circleci-for-m1-machine-failure-e7e945e668a4?source=rss-43765f97680c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7e945e668a4</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[fastlane-ios]]></category>
            <category><![CDATA[fastlane]]></category>
            <category><![CDATA[circleci]]></category>
            <dc:creator><![CDATA[Benjamin Inemugha]]></dc:creator>
            <pubDate>Wed, 29 May 2024 17:12:33 GMT</pubDate>
            <atom:updated>2024-05-29T17:12:33.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*xazansOMpYmPvBUE5tsatw.png" /><figcaption>Author identity unknown?</figcaption></figure><h3>Overview</h3><p>CircleCi is a platform mainly used for continuous integration and continuous delivery with the help of config.yml file for handling workflows. Learn more <a href="https://circleci.com/docs/about-circleci/">here</a>.</p><p>The workflows can be run with intel-based machines or the M1-base machines. As of the time of writing this blog, the intel-based machines are set to be deprecated.</p><h3>The problem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4JQzR-zrOqgw_DFraD4WQ.png" /></figure><p><em>Author identity unknown</em></p><p><em>*** Please tell me who you are.</em></p><p><em>Run</em></p><p><em>git config — global user.email “</em><a href="/service/mailto:you@example.com"><em>you@example.com</em></a><em>”<br> git config — global user.name “Your Name”</em></p><p><em>to set your account’s default identity.<br>Omit — global to set the identity only in this repository.</em></p><p><em>fatal: unable to auto-detect email address</em></p><p>When using the intel-based machines, the command from fastfile in a fastlane for commit_bump_version works fine but fails to work for M1-based machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*dQuc4TQhBUoAuUZYCuojEw.png" /></figure><h3>The Solution</h3><p>In the config.yml, the command for configuring the global git user needs to be done as in the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*dWFwcBqh8UP9VrlRksypAQ.png" /></figure><p>Where the GIT_AUTHOR and GIT_EMAIL are environmental values from CircleCI. This can be found in navigation through “Projects” in the Menu, clicking on the three-dot icon beside the project and clicking on Project Settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXssFid0FM1uVqOx8pgvMg.png" /></figure><p>In the Project Settings, you can set environment variables for GIT_AUTHOR and GIT_EMAIL.</p><p>After completing these steps, the error should disappear and the pipeline for commit the version should work as expected.</p><h3>Conclusion</h3><p>The following commands will allow git commit and push to work in CircleCi</p><p><em>git config — global user.name ${GIT_AUTHOR}</em></p><p><em>git config — global user.email ${GIT_EMAIL}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7e945e668a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Pros and Cons of Flutter with VS Code]]></title>
            <link>https://medium.com/@binemugha/the-pros-and-cons-of-flutter-with-vs-code-297f002b6333?source=rss-43765f97680c------2</link>
            <guid isPermaLink="false">https://medium.com/p/297f002b6333</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Benjamin Inemugha]]></dc:creator>
            <pubDate>Thu, 09 Nov 2023 14:29:12 GMT</pubDate>
            <atom:updated>2023-11-09T14:29:12.100Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bm7Bt57TbNpeMFfi69J03A.jpeg" /><figcaption>Is it really good?</figcaption></figure><h3>Overview of Flutter</h3><p>Flutter is a cross-platform development tool used for building both Android and iOS apps as well as web and others.</p><p>In this article, we will be covering why flutter is good and maybe not so good with VS code in particular (without extensions).</p><p><strong>The Pros</strong></p><ol><li>It is easy to learn</li><li>It has a fast development time due to features like hot reload</li><li>Very good documentation and tutorials on the official website</li><li>Large community to help you in your flutter journey</li><li>Frequent new improvements in the language and framework</li><li>Quick support to native changes</li></ol><p><strong>The Cons</strong></p><ol><li>The Dart language in flutter development as compared to native development (Swift) can be frustrating with the semi-colons after most lines</li><li>It is not easy to read the code of a widget tree</li><li>Beginner programmers can make a lot of errors for adding curly braces or brackets in the widget tree</li><li>It can be frustrating to keep importing any files you require. This can take up a lot lines of code.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=297f002b6333" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Homebrew on your macbook]]></title>
            <link>https://medium.com/@binemugha/how-to-install-homebrew-on-your-macbook-bc2dbebd947c?source=rss-43765f97680c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc2dbebd947c</guid>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Benjamin Inemugha]]></dc:creator>
            <pubDate>Mon, 17 Oct 2022 11:42:42 GMT</pubDate>
            <atom:updated>2022-10-17T11:42:42.186Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*zOlKwcMuekMaWHFKY13iTQ.png" /><figcaption>Stay relaxed and brew</figcaption></figure><h3>What is Homebrew?</h3><p>Homebrew installs <a href="https://formulae.brew.sh/formula/"><strong>the stuff you need</strong></a> that Apple (or your Linux system) didn’t. For example, homebrew can be used to install cocoapods on your mac</p><h3>Prerequisite to install Homebrew</h3><ul><li>A 64-bit Intel CPU or Apple Silicon CPU <a href="https://docs.brew.sh/Installation#1"><strong>1</strong></a></li><li>macOS Catalina (10.15) (or higher) <a href="https://docs.brew.sh/Installation#2"><strong>2</strong></a></li><li>Command Line Tools (CLT) for Xcode (from xcode-select --install or <a href="https://developer.apple.com/download/all/"><strong>https://developer.apple.com/download/all/</strong></a>) or <a href="https://itunes.apple.com/us/app/xcode/id497799835"><strong>Xcode</strong></a> <a href="https://docs.brew.sh/Installation#3"><strong>3</strong></a></li><li>The Bourne-again shell for installation (i.e. bash) <a href="https://docs.brew.sh/Installation#4"><strong>4</strong></a></li></ul><h3>Steps to install Homebrew</h3><ol><li>Open Terminal and type the following command:</li></ol><p>/bin/bash -c “$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh">https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh</a>)&quot;</p><p>2. Type your admin password and hit Return. Note that the password would not show on the screen</p><p>3. Wait a few minutes until you see the “Installation successful” message in Terminal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc2dbebd947c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>